aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-10-23 15:56:30 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-10-23 15:56:30 +0000
commit4fac48e923f4957dc0bd9e357346154d6d25a768 (patch)
tree095fee574daa1c0dae5bf853e1a0d0a1ba59da47 /rc.d/init.d
parentc711cf3f88d09bcf3c40119d6bcf13b9a38d4c66 (diff)
downloadinitscripts-4fac48e923f4957dc0bd9e357346154d6d25a768.tar
initscripts-4fac48e923f4957dc0bd9e357346154d6d25a768.tar.gz
initscripts-4fac48e923f4957dc0bd9e357346154d6d25a768.tar.bz2
initscripts-4fac48e923f4957dc0bd9e357346154d6d25a768.tar.xz
initscripts-4fac48e923f4957dc0bd9e357346154d6d25a768.zip
touch random seed file before chmoding it.
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/random2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/random b/rc.d/init.d/random
index e394feb4..55c29856 100755
--- a/rc.d/init.d/random
+++ b/rc.d/init.d/random
@@ -18,6 +18,8 @@ case "$1" in
# Load and then save 512 bytes, which is the size of the entropy pool
if [ -f $random_seed ]; then
cat $random_seed >/dev/urandom
+ else
+ touch $random_seed
fi
chmod 600 $random_seed
dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null