Skip to content
Snippets Groups Projects
Commit a64e26b9 authored by Bob Mottram's avatar Bob Mottram
Browse files

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

parent f46e2358
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment