From 52d9993181b4963d3898791b6441bd31a850ed18 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Sep 2015 19:44:06 +0100 Subject: [PATCH] Reset tripwire without the other menus --- src/freedombone-sec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/freedombone-sec b/src/freedombone-sec index 9bd7033e..2c3e8392 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -377,11 +377,14 @@ function regenerate_dh_keys { } function reset_tripwire { - if [[ $RESET_TRIPWIRE == "yes" ]]; then - echo ' + if [[ $RESET_TRIPWIRE != "yes" ]]; then + return + fi + clear + echo ' ' | reset-tripwire - fi + exit 0 } function housekeeping { @@ -408,6 +411,7 @@ function housekeeping { ;; esac done + reset_tripwire } function import_settings { @@ -639,5 +643,4 @@ change_ssh_settings change_xmpp_settings regenerate_ssh_host_keys regenerate_dh_keys -reset_tripwire exit 0