From: Michael Tremer Date: Tue, 22 May 2018 19:25:03 +0000 (+0100) Subject: rngd: Always start the daemon X-Git-Tag: v2.21-core122~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab91dde24b512f7a6067937803946a10750b1ed6;p=ipfire-2.x.git 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 --- diff --git a/src/initscripts/system/rngd b/src/initscripts/system/rngd index e9a2db40ad..91b70a7b4f 100644 --- a/src/initscripts/system/rngd +++ b/src/initscripts/system/rngd @@ -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 ;;