If /dev/hwrng exists then set the hrng type accordingly
This commit is contained in:
parent
f46e2358d7
commit
a64e26b998
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue