aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-07-07 20:38:02 +0000
committerBill Nottingham <notting@redhat.com>2004-07-07 20:38:02 +0000
commit179e85006c4b278860d4effbc4ddfc06779acc81 (patch)
treee6d8653e829dc503473336c0af06e747d13f87cd /rc.d/init.d/halt
parent59f9e229092c5fd41d5a8cad5a7655a610ca01e5 (diff)
downloadinitscripts-179e85006c4b278860d4effbc4ddfc06779acc81.tar
initscripts-179e85006c4b278860d4effbc4ddfc06779acc81.tar.gz
initscripts-179e85006c4b278860d4effbc4ddfc06779acc81.tar.bz2
initscripts-179e85006c4b278860d4effbc4ddfc06779acc81.tar.xz
initscripts-179e85006c4b278860d4effbc4ddfc06779acc81.zip
move random stuff to rc.sysinit/halt; move all swap to after this.
prereq of bug #123278
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 42a40650..89ef597f 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -69,6 +69,11 @@ if [ $? = 0 -a -x /usr/sbin/alsactl ]; then
runcmd $"Saving mixer settings" alsactl store
fi
+# Save random seed
+touch /var/lib/random_seed
+chmod 600 /var/lib/random_seed
+runcmd $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random_seed count=1 bs=512 2>/dev/null
+
# Sync the system clock.
ARC=0
SRM=0