2 # Begin $rc_base/init.d/random
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6 # Random script elements by Larry Lawrence
13 echo "Initializing kernel random number generator..."
14 if [ -f /var
/tmp
/random-seed
]; then
15 cat /var
/tmp
/random-seed
>/dev
/urandom
17 dd if=/dev
/urandom of
=/var
/tmp
/random-seed count
=1 &>/dev
/null
22 echo "Saving random seed..."
23 dd if=/dev
/urandom of
=/var
/tmp
/random-seed count
=1 &>/dev
/null
28 echo "Usage: $0 {start|stop}"
33 # End $rc_base/init.d/random