|
@@ -267,14 +267,15 @@ function argument_checks {
|
267
|
267
|
|
268
|
268
|
function check_hwrng {
|
269
|
269
|
# If hardware random number generation was enabled then make sure that the device exists.
|
270
|
|
- # if /dev/hwrng is not found than any subsequent cryptographic key generation would
|
|
270
|
+ # if /dev/hwrng is not found then any subsequent cryptographic key generation would
|
271
|
271
|
# suffer from low entropy and might be insecure
|
272
|
272
|
if [ ! -f /etc/default/rng-tools ]; then
|
273
|
273
|
return
|
274
|
274
|
fi
|
275
|
275
|
if [ ! -b /dev/hwrng ]; then
|
276
|
276
|
ls /dev/hw*
|
277
|
|
- 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.'
|
|
277
|
+ echo 'The hardware random number generator is anabled but could not be detected on'
|
|
278
|
+ echo '/dev/hwrng. There may be a problem with the installation or the Beaglebone hardware.'
|
278
|
279
|
exit 75
|
279
|
280
|
fi
|
280
|
281
|
}
|