summaryrefslogtreecommitdiff
path: root/meta/packages/initscripts/initscripts-1.0/urandom
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/urandom')
-rwxr-xr-xmeta/packages/initscripts/initscripts-1.0/urandom17
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/urandom b/meta/packages/initscripts/initscripts-1.0/urandom
index 45c41d758b..b6d807cf3b 100755
--- a/meta/packages/initscripts/initscripts-1.0/urandom
+++ b/meta/packages/initscripts/initscripts-1.0/urandom
@@ -1,10 +1,15 @@
#! /bin/sh
-#
-# urandom This script saves the random seed between reboots.
-# It is called from the boot, halt and reboot scripts.
-#
-# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl
-#
+### BEGIN INIT INFO
+# Provides: urandom
+# Required-Start: $local_fs mountvirtfs
+# Required-Stop: $local_fs
+# Default-Start: S
+# Default-Stop: 0 6
+# Short-Description: Save and restore the random seed
+# Description: Save the random seed on shutdown and restore it on boot,
+# to ensure that the seed isn't predicable on startup
+# (because the boot process is predictable)
+### END INIT INFO
test -c /dev/urandom || exit 0
. /etc/default/rcS