--- sys-apps/rng-tools/files/rngd-initd-4.1.orig 2015-07-16 18:44:46.001793252 -0400 +++ sys-apps/rng-tools/files/rngd-initd-4.1 2015-07-16 19:51:17.909289465 -0400 @@ -9,21 +9,8 @@ provide entropy } -# Do NOT add /dev/tpm to this. -DEFAULT_DEVICE="/dev/hw_random* /dev/hwrandom* /dev/i810_rng /dev/hwrng*" - -find_device() { - local d - # The echo is to cause globbing - for d in $(echo ${DEFAULT_DEVICE}) ; do - [ -e "${d}" ] && echo "${d}" - done -} - -RNG_DEVICE="${DEVICE:-$(find_device)}" - command=/usr/sbin/rngd pidfile="/var/run/${SVCNAME}.pid" -command_args="--pid-file ${pidfile} --background --random-step ${STEP:-64} ${NO_TPM:+--no-tpm=1} ${NO_DRNG:+--no-drng=1} --fill-watermark ${WATERMARK} ${RNG_DEVICE:+--rng-device ${RNG_DEVICE}}" +command_args="--pid-file ${pidfile} --background --random-step ${STEP:-64} ${NO_TPM:+--no-tpm=1} ${NO_DRNG:+--no-drng=1} --fill-watermark ${WATERMARK} ${DEVICE:+--rng-device ${DEVICE}}" start_stop_daemon_args="--wait 1000" retry="SIGKILL/5000"