tidying
This commit is contained in:
parent
933b4d354c
commit
7eb0f1d627
|
@ -267,14 +267,15 @@ function argument_checks {
|
||||||
|
|
||||||
function check_hwrng {
|
function check_hwrng {
|
||||||
# If hardware random number generation was enabled then make sure that the device exists.
|
# If hardware random number generation was enabled then make sure that the device exists.
|
||||||
# if /dev/hwrng is not found than any subsequent cryptographic key generation would
|
# if /dev/hwrng is not found then any subsequent cryptographic key generation would
|
||||||
# suffer from low entropy and might be insecure
|
# suffer from low entropy and might be insecure
|
||||||
if [ ! -f /etc/default/rng-tools ]; then
|
if [ ! -f /etc/default/rng-tools ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ ! -b /dev/hwrng ]; then
|
if [ ! -b /dev/hwrng ]; then
|
||||||
ls /dev/hw*
|
ls /dev/hw*
|
||||||
echo 'The hardware random number generator is anabled but could not be detected on /dev/hwrng. There may be a problem with the installation or the Beaglebone hardware.'
|
echo 'The hardware random number generator is anabled but could not be detected on'
|
||||||
|
echo '/dev/hwrng. There may be a problem with the installation or the Beaglebone hardware.'
|
||||||
exit 75
|
exit 75
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue