From f98e772c9647143a3c3fd6fbd470e59b6906b787 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 28 Feb 2010 17:13:49 -0800 Subject: [PATCH] Implement verbose changes in the -lite products Signed-off-by: Tom Eastep --- Shorewall-lite/shorewall-lite | 20 ++++++++++---------- Shorewall6-lite/shorewall6-lite | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index c97def7c7..7b13c7f63 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -149,7 +149,7 @@ get_config() { [ -n "${VERBOSITY:=2}" ] - [ -n "$USE_VERBOSITY" ] && VERBOSE=$USE_VERBOSITY || VERBOSE=$(($VERBOSE_OFFSET + $VERBOSITY)) + [ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY)) export VERBOSE @@ -425,8 +425,8 @@ fi IPT_OPTIONS="-nv" FAST= -VERBOSE_OFFSET=0 -USE_VERBOSITY= +g_verbose_offset=0 +g_use_verbosity= NOROUTES= EXPORT= export TIMESTAMP= @@ -455,7 +455,7 @@ while [ $finished -eq 0 ]; do option=${option#x} ;; q*) - VERBOSE_OFFSET=$(($VERBOSE_OFFSET - 1 )) + g_verbose_offset=$(($g_verbose_offset - 1 )) option=${option#q} ;; f*) @@ -466,24 +466,24 @@ while [ $finished -eq 0 ]; do option=${option#v} case $option in -1*) - USE_VERBOSITY=-1 + g_use_verbosity=-1 option=${option#-1} ;; 0*) - USE_VERBOSITY=0 + g_use_verbosity=0 option=${option#0} ;; 1*) - USE_VERBOSITY=1 + g_use_verbosity=1 option=${option#1} ;; 2*) - USE_VERBOSITY=2 + g_use_verbosity=2 option=${option#2} ;; *) - VERBOSE_OFFSET=$(($VERBOSE_OFFSET + 1 )) - USE_VERBOSITY= + g_verbose_offset=$(($g_verbose_offset + 1 )) + g_use_verbosity= ;; esac ;; diff --git a/Shorewall6-lite/shorewall6-lite b/Shorewall6-lite/shorewall6-lite index 4023069d0..fecfc6c2e 100755 --- a/Shorewall6-lite/shorewall6-lite +++ b/Shorewall6-lite/shorewall6-lite @@ -149,7 +149,7 @@ get_config() { [ -n "${VERBOSITY:=2}" ] - [ -n "$USE_VERBOSITY" ] && VERBOSE=$USE_VERBOSITY || VERBOSE=$(($VERBOSE_OFFSET + $VERBOSITY)) + [ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY)) export VERBOSE @@ -410,8 +410,8 @@ fi IPT_OPTIONS="-nv" FAST= -VERBOSE_OFFSET=0 -USE_VERBOSITY= +g_verbose_offset=0 +g_use_verbosity= NOROUTES= EXPORT= export TIMESTAMP= @@ -440,7 +440,7 @@ while [ $finished -eq 0 ]; do option=${option#x} ;; q*) - VERBOSE_OFFSET=$(($VERBOSE_OFFSET - 1 )) + g_verbose_offset=$(($g_verbose_offset - 1 )) option=${option#q} ;; f*) @@ -451,24 +451,24 @@ while [ $finished -eq 0 ]; do option=${option#v} case $option in -1*) - USE_VERBOSITY=-1 + g_use_verbosity=-1 option=${option#-1} ;; 0*) - USE_VERBOSITY=0 + g_use_verbosity=0 option=${option#0} ;; 1*) - USE_VERBOSITY=1 + g_use_verbosity=1 option=${option#1} ;; 2*) - USE_VERBOSITY=2 + g_use_verbosity=2 option=${option#2} ;; *) - VERBOSE_OFFSET=$(($VERBOSE_OFFSET + 1 )) - USE_VERBOSITY= + g_verbose_offset=$(($g_verbose_offset + 1 )) + g_use_verbosity= ;; esac ;;