From c7361743efb6f53d6f19c0a12738488b6a607dcb Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 23 Nov 2012 11:46:14 -0800 Subject: [PATCH] Enable 'debug' on the try, stop and clear commands. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- Shorewall/lib.cli-std | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 3ffee9efd..847e89494 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7365,7 +7365,7 @@ sub create_stop_load( $ ) { emit ''; - emit( '[ -n "$DEBUG" ] && command=debug_restore_input || command=$' . $UTILITY, + emit( '[ -n "$g_debug_iptables" ] && command=debug_restore_input || command=$' . $UTILITY, '', 'progress_message2 "Running $command..."', '', diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 6cdf316ba..ac5a7d50c 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -1315,7 +1315,7 @@ try_command() { [ -n "$nolock" ] || mutex_on - if run_it ${VARDIR}/.$command $command && [ -n "$timeout" ]; then + if run_it ${VARDIR}/.$command $g_debugging $command && [ -n "$timeout" ]; then sleep $timeout if [ "$command" = "restart" ]; then