Browse Source

onerng verification only needs to be confirmed once

Bob Mottram 9 years ago
parent
commit
c1d5dbe97a
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

@@ -4739,6 +4739,9 @@ function enable_zram {
4739 4739
 }
4740 4740
 
4741 4741
 function check_onerng_verification {
4742
+  if grep -Fxq "check_onerng_verification" $COMPLETION_FILE; then
4743
+      return
4744
+  fi
4742 4745
   if [[ $HWRNG_TYPE != "onerng" ]]; then
4743 4746
       return
4744 4747
   fi
@@ -4755,6 +4758,7 @@ function check_onerng_verification {
4755 4758
   echo 'OneRNG firmware verification passed'
4756 4759
   # if haveged was previously installed then remove it
4757 4760
   apt-get -y remove haveged
4761
+  echo 'check_onerng_verification' >> $COMPLETION_FILE
4758 4762
 }
4759 4763
 
4760 4764
 function install_onerng {