浏览代码

onerng verification only needs to be confirmed once

Bob Mottram 10 年前
父节点
当前提交
c1d5dbe97a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone 查看文件

@@ -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 {