From 4fac48e923f4957dc0bd9e357346154d6d25a768 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Thu, 23 Oct 1997 15:56:30 +0000 Subject: touch random seed file before chmoding it. --- initscripts.spec | 4 ++++ rc.d/init.d/random | 2 ++ 2 files changed, 6 insertions(+) diff --git a/initscripts.spec b/initscripts.spec index 5e2b12d4..2f1c0c0b 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -17,6 +17,10 @@ that activate and deactivate most network interfaces. %changelog +* Thu Oct 23 1997 Michael K. Johnson + +- touch random seed file before chmod'ing it. + * Wed Oct 15 1997 Erik Troan - run domainname if NISDOMAIN is set 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 -- cgit