rngd: Always start the daemon

We cannot reliably detect in this script any more if the
system has an actual HWRNG (/dev/hwrng always exists).

Therefore we always start the daemon now and let it
deal with what ever comes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-05-22 20:25:03 +01:00
parent 90940aded5
commit ab91dde24b

View File

@@ -11,22 +11,8 @@
. /etc/sysconfig/rc
. ${rc_functions}
function has_rdrand() {
grep -q "rdrand" /proc/cpuinfo
}
function has_hwrng() {
[ -e "/dev/hwrng" ]
}
case "${1}" in
start)
if ! has_hwrng && ! has_rdrand; then
boot_mesg "No Hardware Random Number Generator found..."
echo_warning
exit 0
fi
boot_mesg "Starting Random Number Generator Daemon..."
loadproc /usr/sbin/rngd --quiet
;;