From c1d5dbe97a21975908d92bf0f9ac7931f8f6684b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Jun 2015 19:40:20 +0100 Subject: [PATCH] onerng verification only needs to be confirmed once --- src/freedombone | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone b/src/freedombone index 200ae4d3..99222970 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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 {