onerng verification only needs to be confirmed once

This commit is contained in:
Bob Mottram 2015-06-14 19:40:20 +01:00
parent 75526360ff
commit c1d5dbe97a
1 changed files with 4 additions and 0 deletions

View File

@ -4739,6 +4739,9 @@ function enable_zram {
}
function check_onerng_verification {
if grep -Fxq "check_onerng_verification" $COMPLETION_FILE; then
return
fi
if [[ $HWRNG_TYPE != "onerng" ]]; then
return
fi
@ -4755,6 +4758,7 @@ function check_onerng_verification {
echo 'OneRNG firmware verification passed'
# if haveged was previously installed then remove it
apt-get -y remove haveged
echo 'check_onerng_verification' >> $COMPLETION_FILE
}
function install_onerng {