]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
rngd: Always start the daemon
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 May 2018 19:25:03 +0000 (20:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 May 2018 19:25:03 +0000 (20:25 +0100)
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>
src/initscripts/system/rngd

index e9a2db40ad588a679576d8bedb252af2960ccc89..91b70a7b4f7dfcf7ca37bde69c13148e90bd9f6e 100644 (file)
 . /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
                ;;