Browse Source

Generate an /etc/host.random if it doesn't exist; 64KB, perms 600.

OPENBSD_2_4
angelos 26 years ago
parent
commit
0bdf230b3c
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/etc/rc

+ 7
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.76 1998/06/13 03:38:15 millert Exp $
# $OpenBSD: rc,v 1.77 1998/07/03 03:48:16 angelos Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -70,6 +70,12 @@ rm -f /fastboot # XXX (root now writeable)
echo 'setting tty flags' echo 'setting tty flags'
ttyflags -a ttyflags -a
# if there's no /etc/host.random, make one through /dev/urandom
if [ ! -f /etc/host.random ]; then
dd if=/dev/urandom of=/dev/host.random bs=1024 count=64
chmod 600 /etc/random
fi
# set hostname, turn on network # set hostname, turn on network
echo 'starting network' echo 'starting network'
. /etc/netstart . /etc/netstart


Loading…
Cancel
Save