diff --git a/Shorewall/prog.footer.suse b/Shorewall/prog.footer.suse index cdd1f2867..78c8ed49d 100644 --- a/Shorewall/prog.footer.suse +++ b/Shorewall/prog.footer.suse @@ -62,6 +62,7 @@ case "$COMMAND" in progress_message3 "Starting Shorewall...." define_firewall status=$? + [ $status = 0 -a -n "$SUBSYSLOCK" ] && touch $SUBSYSLOCK progress_message3 "done." fi ;; @@ -69,6 +70,7 @@ case "$COMMAND" in progress_message3 "Stopping Shorewall...." stop_firewall status=0 + [ -n "$SUBSYSLOCK" ] && rm -f $SUBSYSLOCK progress_message3 "done." ;; restart) @@ -86,11 +88,13 @@ case "$COMMAND" in restore) restore_firewall status=$? + [ $status = 0 -a -n "$SUBSYSLOCK" ] && touch $SUBSYSLOCK ;; clear) progress_message3 "Clearing Shorewall...." clear_firewall status=0 + [ -n "$SUBSYSLOCK" ] && rm -f $SUBSYSLOCK progress_message3 "done." ;; status)