Force random number generator

This commit is contained in:
Bob Mottram 2014-09-23 13:21:41 +01:00
parent 19b31ec84c
commit c8099ed696
1 changed files with 2 additions and 2 deletions

View File

@ -271,10 +271,10 @@ function random_number_generator {
return return
fi fi
if [ $USE_HWRNG == "yes" ]; then if [ $USE_HWRNG == "yes" ]; then
apt-get -y install rng-tools apt-get -y --force-yes install rng-tools
sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools
else else
apt-get -y install haveged apt-get -y --force-yes install haveged
fi fi
echo 'random_number_generator' >> $COMPLETION_FILE echo 'random_number_generator' >> $COMPLETION_FILE
} }