aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/random
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
committerBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
commite8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893 (patch)
tree3b299a1b638cf16e4d9574318b683851395f6e4c /rc.d/init.d/random
parent2aa519f20375260f6e22d408e8bce7fabf2140b6 (diff)
downloadinitscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.gz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.bz2
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.xz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.zip
bugfixes...
Diffstat (limited to 'rc.d/init.d/random')
-rwxr-xr-xrc.d/init.d/random9
1 files changed, 4 insertions, 5 deletions
diff --git a/rc.d/init.d/random b/rc.d/init.d/random
index 3375141b..27f2abd4 100755
--- a/rc.d/init.d/random
+++ b/rc.d/init.d/random
@@ -1,4 +1,3 @@
-#!/bin/sh
#
# random Script to snapshot random state and reload it at boot time.
#
@@ -19,11 +18,11 @@ case "$1" in
# Carry a random seed from start-up to start-up
# Load and then save 512 bytes, which is the size of the entropy pool
if [ -f $random_seed ]; then
- cmd="cat $random_seed >/dev/urandom"
+ cat $random_seed >/dev/urandom
else
- cmd="touch $random_seed"
+ touch $random_seed
fi
- action "Initializing random number generator" $cmd
+ action -n "Initializing random number generator" /bin/true
chmod 600 $random_seed
dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
touch /var/lock/subsys/random
@@ -34,7 +33,7 @@ case "$1" in
# Save 512 bytes, which is the size of the entropy pool
touch $random_seed
chmod 600 $random_seed
- action "Saving random seed" dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
+ action -n "Saving random seed" dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
rm -f /var/lock/subsys/random
;;