mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 00:42:59 +02:00
rngd: update initskript and add hwrngtty support
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -13,8 +13,18 @@
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
if pidofproc -s /usr/sbin/rngd; then
|
||||
boot_mesg "Random Number Generator Daemon is already running..."
|
||||
echo_ok;
|
||||
exit 0
|
||||
fi
|
||||
if [ -e /dev/hwrngtty ]; then
|
||||
HWRNG=/dev/hwrngtty
|
||||
else
|
||||
HWRNG=/dev/hwrng
|
||||
fi
|
||||
boot_mesg "Starting Random Number Generator Daemon..."
|
||||
loadproc /usr/sbin/rngd --quiet
|
||||
loadproc /usr/sbin/rngd -r $HWRNG --quiet
|
||||
;;
|
||||
|
||||
stop)
|
||||
|
||||
Reference in New Issue
Block a user