]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/init.d/random
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 boot_mesg
"Initializing kernel random number generator..."
14 if [ -f /var
/tmp
/random-seed
]; then
15 /bin
/cat /var
/tmp
/random-seed
>/dev
/urandom
17 /bin
/dd if=/dev
/urandom of
=/var
/tmp
/random-seed \
23 boot_mesg
"Saving random seed..."
24 /bin
/dd if=/dev
/urandom of
=/var
/tmp
/random-seed \
30 echo "Usage: $0 {start|stop}"
35 # End $rc_base/init.d/random