Implement verbose changes in the -lite products

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-28 17:13:49 -08:00
parent 39883aa690
commit f98e772c96
2 changed files with 20 additions and 20 deletions

View File

@ -149,7 +149,7 @@ get_config() {
[ -n "${VERBOSITY:=2}" ] [ -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 export VERBOSE
@ -425,8 +425,8 @@ fi
IPT_OPTIONS="-nv" IPT_OPTIONS="-nv"
FAST= FAST=
VERBOSE_OFFSET=0 g_verbose_offset=0
USE_VERBOSITY= g_use_verbosity=
NOROUTES= NOROUTES=
EXPORT= EXPORT=
export TIMESTAMP= export TIMESTAMP=
@ -455,7 +455,7 @@ while [ $finished -eq 0 ]; do
option=${option#x} option=${option#x}
;; ;;
q*) q*)
VERBOSE_OFFSET=$(($VERBOSE_OFFSET - 1 )) g_verbose_offset=$(($g_verbose_offset - 1 ))
option=${option#q} option=${option#q}
;; ;;
f*) f*)
@ -466,24 +466,24 @@ while [ $finished -eq 0 ]; do
option=${option#v} option=${option#v}
case $option in case $option in
-1*) -1*)
USE_VERBOSITY=-1 g_use_verbosity=-1
option=${option#-1} option=${option#-1}
;; ;;
0*) 0*)
USE_VERBOSITY=0 g_use_verbosity=0
option=${option#0} option=${option#0}
;; ;;
1*) 1*)
USE_VERBOSITY=1 g_use_verbosity=1
option=${option#1} option=${option#1}
;; ;;
2*) 2*)
USE_VERBOSITY=2 g_use_verbosity=2
option=${option#2} option=${option#2}
;; ;;
*) *)
VERBOSE_OFFSET=$(($VERBOSE_OFFSET + 1 )) g_verbose_offset=$(($g_verbose_offset + 1 ))
USE_VERBOSITY= g_use_verbosity=
;; ;;
esac esac
;; ;;

View File

@ -149,7 +149,7 @@ get_config() {
[ -n "${VERBOSITY:=2}" ] [ -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 export VERBOSE
@ -410,8 +410,8 @@ fi
IPT_OPTIONS="-nv" IPT_OPTIONS="-nv"
FAST= FAST=
VERBOSE_OFFSET=0 g_verbose_offset=0
USE_VERBOSITY= g_use_verbosity=
NOROUTES= NOROUTES=
EXPORT= EXPORT=
export TIMESTAMP= export TIMESTAMP=
@ -440,7 +440,7 @@ while [ $finished -eq 0 ]; do
option=${option#x} option=${option#x}
;; ;;
q*) q*)
VERBOSE_OFFSET=$(($VERBOSE_OFFSET - 1 )) g_verbose_offset=$(($g_verbose_offset - 1 ))
option=${option#q} option=${option#q}
;; ;;
f*) f*)
@ -451,24 +451,24 @@ while [ $finished -eq 0 ]; do
option=${option#v} option=${option#v}
case $option in case $option in
-1*) -1*)
USE_VERBOSITY=-1 g_use_verbosity=-1
option=${option#-1} option=${option#-1}
;; ;;
0*) 0*)
USE_VERBOSITY=0 g_use_verbosity=0
option=${option#0} option=${option#0}
;; ;;
1*) 1*)
USE_VERBOSITY=1 g_use_verbosity=1
option=${option#1} option=${option#1}
;; ;;
2*) 2*)
USE_VERBOSITY=2 g_use_verbosity=2
option=${option#2} option=${option#2}
;; ;;
*) *)
VERBOSE_OFFSET=$(($VERBOSE_OFFSET + 1 )) g_verbose_offset=$(($g_verbose_offset + 1 ))
USE_VERBOSITY= g_use_verbosity=
;; ;;
esac esac
;; ;;