summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 886931189bb..187c82df46a 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.156 2000/10/18 21:28:54 mickey Exp $
+# $OpenBSD: rc,v 1.157 2000/10/27 06:36:35 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -142,6 +142,11 @@ else
> /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
+
# clean up left-over files
rm -f /etc/nologin
rm -f /var/spool/lock/LCK.*