Procházet zdrojové kódy

onerng verification only needs to be confirmed once

Bob Mottram před 10 roky
rodič
revize
c1d5dbe97a
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Zobrazit soubor

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