Browse Source

If /dev/hwrng exists then set the hrng type accordingly

Bob Mottram 9 years ago
parent
commit
a64e26b998
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone

+ 7
- 0
src/freedombone View File

@@ -6354,6 +6354,13 @@ function random_number_generator {
6354 6354
       return
6355 6355
   fi
6356 6356
 
6357
+  # if the hrng type has not been set but /dev/hwrng is detected
6358
+  if [[ $HWRNG_TYPE != "beaglebone" ]]; then
6359
+      if [ -e /dev/hwrng ]; then
6360
+          HWRNG_TYPE="beaglebone"
6361
+      fi
6362
+  fi
6363
+
6357 6364
   case $HWRNG_TYPE in
6358 6365
     beaglebone)
6359 6366
     apt-get -y install rng-tools