Force random number generator
This commit is contained in:
parent
19b31ec84c
commit
c8099ed696
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue