aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
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