瀏覽代碼

Reset tripwire without the other menus

Bob Mottram 9 年之前
父節點
當前提交
52d9993181
共有 1 個檔案被更改,包括 7 行新增4 行删除
  1. 7
    4
      src/freedombone-sec

+ 7
- 4
src/freedombone-sec 查看文件

377
 }
377
 }
378
 
378
 
379
 function reset_tripwire {
379
 function reset_tripwire {
380
-  if [[ $RESET_TRIPWIRE == "yes" ]]; then
381
-      echo '
380
+  if [[ $RESET_TRIPWIRE != "yes" ]]; then
381
+      return
382
+  fi
383
+  clear
384
+  echo '
382
 
385
 
383
 ' | reset-tripwire
386
 ' | reset-tripwire
384
-  fi
387
+  exit 0
385
 }
388
 }
386
 
389
 
387
 function housekeeping {
390
 function housekeeping {
408
         ;;
411
         ;;
409
     esac
412
     esac
410
   done
413
   done
414
+  reset_tripwire
411
 }
415
 }
412
 
416
 
413
 function import_settings {
417
 function import_settings {
639
 change_xmpp_settings
643
 change_xmpp_settings
640
 regenerate_ssh_host_keys
644
 regenerate_ssh_host_keys
641
 regenerate_dh_keys
645
 regenerate_dh_keys
642
-reset_tripwire
643
 exit 0
646
 exit 0