Indentation

This commit is contained in:
Bob Mottram 2014-09-30 19:08:46 +01:00
parent 7eb0f1d627
commit 90d34fff18
1 changed files with 12 additions and 12 deletions

View File

@ -266,18 +266,18 @@ function argument_checks {
}
function check_hwrng {
# If hardware random number generation was enabled then make sure that the device exists.
# if /dev/hwrng is not found then any subsequent cryptographic key generation would
# suffer from low entropy and might be insecure
if [ ! -f /etc/default/rng-tools ]; then
return
fi
if [ ! -b /dev/hwrng ]; then
ls /dev/hw*
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
fi
# If hardware random number generation was enabled then make sure that the device exists.
# if /dev/hwrng is not found then any subsequent cryptographic key generation would
# suffer from low entropy and might be insecure
if [ ! -f /etc/default/rng-tools ]; then
return
fi
if [ ! -b /dev/hwrng ]; then
ls /dev/hw*
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
fi
}
function remove_default_user {