Browse Source

duh -- on first boot, do not build the host.random file twice; ok djm

OPENBSD_4_1
deraadt 17 years ago
parent
commit
6f509cdf39
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/etc/rc

+ 6
- 6
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.292 2006/10/29 18:58:57 norby Exp $
# $OpenBSD: rc,v 1.293 2006/11/06 21:55:52 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -270,12 +270,12 @@ else
> /dev/null 2>&1
dd if=/var/db/host.random of=/dev/arandom bs=1024 count=64 \
> /dev/null 2>&1
fi
# reset seed file, so that if a shutdown-less reboot occurs,
# the next seed is not a repeat
dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \
> /dev/null 2>&1
# reset seed file, so that if a shutdown-less reboot occurs,
# the next seed is not a repeat
dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \
> /dev/null 2>&1
fi
# clean up left-over files
rm -f /etc/nologin


Loading…
Cancel
Save