From a64e26b99860c097f4500f56276b5df1316e6cbc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 30 Nov 2015 16:12:48 +0000 Subject: [PATCH] If /dev/hwrng exists then set the hrng type accordingly --- src/freedombone | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedombone b/src/freedombone index e792aaa0..bc7645d3 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6354,6 +6354,13 @@ function random_number_generator { return fi + # if the hrng type has not been set but /dev/hwrng is detected + if [[ $HWRNG_TYPE != "beaglebone" ]]; then + if [ -e /dev/hwrng ]; then + HWRNG_TYPE="beaglebone" + fi + fi + case $HWRNG_TYPE in beaglebone) apt-get -y install rng-tools