]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/system/rngd
2 ########################################################################
3 # Begin $rc_base/init.d/rngd
5 # Description : Random Number Generator Daemon
7 # Authors : Michael Tremer <michael.tremer@ipfire.org>
9 ########################################################################
16 if pidofproc
-s /usr
/sbin
/rngd
; then
17 boot_mesg
"Random Number Generator Daemon is already running..."
21 if [ -e /dev
/hwrngtty
]; then
26 boot_mesg
"Starting Random Number Generator Daemon..."
27 loadproc
/usr
/sbin
/rngd
-r $HWRNG --quiet
31 boot_mesg
"Stopping Random Number Generator Daemon..."
32 killproc
-p /var
/run
/rngd.pid
/usr
/sbin
/rngd
42 statusproc
/usr
/sbin
/rngd
46 $0 restart
&>/dev
/null
50 echo "Usage: ${0} {start|stop|restart|status}"
55 # End $rc_base/init.d/rngd