mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 12:13:29 +02:00
Eliminate VERBOSE
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
14f83759ae
commit
53c73bc8e9
@ -59,7 +59,7 @@ VERSION=$(cat /usr/share/shorewall-lite/version)
|
|||||||
|
|
||||||
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
||||||
|
|
||||||
VERBOSE=0
|
VERBOSITY=0
|
||||||
load_kernel_modules No
|
load_kernel_modules No
|
||||||
determine_capabilities
|
determine_capabilities
|
||||||
report_capabilities1
|
report_capabilities1
|
||||||
|
@ -149,9 +149,9 @@ get_config() {
|
|||||||
|
|
||||||
[ -n "${VERBOSITY:=2}" ]
|
[ -n "${VERBOSITY:=2}" ]
|
||||||
|
|
||||||
[ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY))
|
[ -n "$g_use_verbosity" ] && VERBOSITY=$g_use_verbosity || VERBOSITY=$(($g_verbose_offset + $VERBOSITY))
|
||||||
|
|
||||||
export VERBOSE
|
export VERBOSITY
|
||||||
|
|
||||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ sub generate_script_2() {
|
|||||||
my @dont_load = split_list $config{DONT_LOAD}, 'module';
|
my @dont_load = split_list $config{DONT_LOAD}, 'module';
|
||||||
|
|
||||||
emit ( '[ -n "${COMMAND:=restart}" ]',
|
emit ( '[ -n "${COMMAND:=restart}" ]',
|
||||||
'[ -n "${VERBOSE:=0}" ]',
|
'[ -n "${VERBOSITY:=0}" ]',
|
||||||
qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]) );
|
qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]) );
|
||||||
|
|
||||||
emit ( qq(VERSION="$globals{VERSION}") ) unless $test;
|
emit ( qq(VERSION="$globals{VERSION}") ) unless $test;
|
||||||
|
@ -24,6 +24,8 @@ if [ $# -gt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -z "$VERBOSITY" ] && [ -n "$VERBOSE" ] & VERBOSITY=$VERBOSE
|
||||||
|
|
||||||
initialize
|
initialize
|
||||||
|
|
||||||
if [ -n "$STARTUP_LOG" ]; then
|
if [ -n "$STARTUP_LOG" ]; then
|
||||||
@ -51,11 +53,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
while [ -n "$option" ]; do
|
while [ -n "$option" ]; do
|
||||||
case $option in
|
case $option in
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
q*)
|
q*)
|
||||||
VERBOSE=$(($VERBOSE - 1 ))
|
VERBOSITY=$(($VERBOSITY - 1 ))
|
||||||
option=${option#q}
|
option=${option#q}
|
||||||
;;
|
;;
|
||||||
n*)
|
n*)
|
||||||
@ -81,7 +83,7 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
if [ -n "$option" ]; then
|
if [ -n "$option" ]; then
|
||||||
case $option in
|
case $option in
|
||||||
-1|0|1|2)
|
-1|0|1|2)
|
||||||
VERBOSE=$option
|
VERBOSITY=$option
|
||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -24,6 +24,8 @@ if [ $# -gt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -z "$VERBOSITY" ] && [ -n "$VERBOSE" ] & VERBOSITY=$VERBOSE
|
||||||
|
|
||||||
initialize
|
initialize
|
||||||
|
|
||||||
if [ -n "$STARTUP_LOG" ]; then
|
if [ -n "$STARTUP_LOG" ]; then
|
||||||
@ -51,11 +53,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
while [ -n "$option" ]; do
|
while [ -n "$option" ]; do
|
||||||
case $option in
|
case $option in
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
q*)
|
q*)
|
||||||
VERBOSE=$(($VERBOSE - 1 ))
|
VERBOSITY=$(($VERBOSITY - 1 ))
|
||||||
option=${option#q}
|
option=${option#q}
|
||||||
;;
|
;;
|
||||||
n*)
|
n*)
|
||||||
@ -81,7 +83,7 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
if [ -n "$option" ]; then
|
if [ -n "$option" ]; then
|
||||||
case $option in
|
case $option in
|
||||||
-1|0|1|2)
|
-1|0|1|2)
|
||||||
VERBOSE=$option
|
VERBOSITY=$option
|
||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -38,7 +38,7 @@ progress_message() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -54,7 +54,7 @@ progress_message2() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 0 ]; then
|
if [ $VERBOSITY -gt 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -70,7 +70,7 @@ progress_message3() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -ge 0 ]; then
|
if [ $VERBOSITY -ge 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
|
@ -38,7 +38,7 @@ progress_message() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -54,7 +54,7 @@ progress_message2() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 0 ]; then
|
if [ $VERBOSITY -gt 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -70,7 +70,7 @@ progress_message3() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -ge 0 ]; then
|
if [ $VERBOSITY -ge 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
|
@ -52,7 +52,7 @@ progress_message() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -63,7 +63,7 @@ progress_message2() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 0 ]; then
|
if [ $VERBOSITY -gt 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -74,7 +74,7 @@ progress_message3() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -ge 0 ]; then
|
if [ $VERBOSITY -ge 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -990,7 +990,7 @@ report_capabilities() {
|
|||||||
echo " " $1: $setting
|
echo " " $1: $setting
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
echo "Shorewall has detected the following iptables/netfilter capabilities:"
|
echo "Shorewall has detected the following iptables/netfilter capabilities:"
|
||||||
report_capability "NAT" $NAT_ENABLED
|
report_capability "NAT" $NAT_ENABLED
|
||||||
report_capability "Packet Mangling" $MANGLE_ENABLED
|
report_capability "Packet Mangling" $MANGLE_ENABLED
|
||||||
|
@ -151,7 +151,7 @@ syslog_circular_buffer() {
|
|||||||
#
|
#
|
||||||
packet_log() # $1 = number of messages
|
packet_log() # $1 = number of messages
|
||||||
{
|
{
|
||||||
if [ -n "$g_showmacs" -o $VERBOSE -gt 2 ]; then
|
if [ -n "$g_showmacs" -o $VERBOSITY -gt 2 ]; then
|
||||||
$g_logread | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | head -n$1 | tac | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/
|
$g_logread | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | head -n$1 | tac | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/
|
||||||
else
|
else
|
||||||
$g_logread | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | head -n$1 | tac | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/
|
$g_logread | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | head -n$1 | tac | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/
|
||||||
@ -458,7 +458,7 @@ show_command() {
|
|||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
x*)
|
x*)
|
||||||
@ -587,7 +587,7 @@ show_command() {
|
|||||||
capabilities)
|
capabilities)
|
||||||
[ $# -gt 1 ] && usage 1
|
[ $# -gt 1 ] && usage 1
|
||||||
determine_capabilities
|
determine_capabilities
|
||||||
VERBOSE=2
|
VERBOSITY=2
|
||||||
if [ -n "$g_filemode" ]; then
|
if [ -n "$g_filemode" ]; then
|
||||||
report_capabilities1
|
report_capabilities1
|
||||||
else
|
else
|
||||||
@ -778,7 +778,7 @@ dump_command() {
|
|||||||
|
|
||||||
g_ipt_options="$g_ipt_options $g_ipt_options1"
|
g_ipt_options="$g_ipt_options $g_ipt_options1"
|
||||||
|
|
||||||
[ $VERBOSE -lt 2 ] && VERBOSE=2
|
[ $VERBOSITY -lt 2 ] && VERBOSITY=2
|
||||||
|
|
||||||
[ -n "$g_debugging" ] && set -x
|
[ -n "$g_debugging" ] && set -x
|
||||||
[ $# -eq 0 ] || usage 1
|
[ $# -eq 0 ] || usage 1
|
||||||
@ -1390,11 +1390,11 @@ logwatch_command() {
|
|||||||
while [ -n "$option" ]; do
|
while [ -n "$option" ]; do
|
||||||
case $option in
|
case $option in
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
q*)
|
q*)
|
||||||
VERBOSE=$(($VERBOSE - 1 ))
|
VERBOSITY=$(($VERBOSITY - 1 ))
|
||||||
option=${option#q}
|
option=${option#q}
|
||||||
;;
|
;;
|
||||||
m*)
|
m*)
|
||||||
|
@ -297,6 +297,7 @@ None.
|
|||||||
RING_BELL
|
RING_BELL
|
||||||
TEST
|
TEST
|
||||||
USE_VERBOSITY
|
USE_VERBOSITY
|
||||||
|
VERBOSE
|
||||||
VERBOSE_OFFSET
|
VERBOSE_OFFSET
|
||||||
|
|
||||||
See Migration Issue 14 above for additional information.
|
See Migration Issue 14 above for additional information.
|
||||||
|
@ -259,15 +259,15 @@ get_config() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY))
|
[ -n "$g_use_verbosity" ] && VERBOSITY=$g_use_verbosity || VERBOSITY=$(($g_verbose_offset + $VERBOSITY))
|
||||||
|
|
||||||
if [ $VERBOSE -lt -1 ]; then
|
if [ $VERBOSITY -lt -1 ]; then
|
||||||
VERBOSE=-1
|
VERBOSITY=-1
|
||||||
elif [ $VERBOSE -gt 2 ]; then
|
elif [ $VERBOSITY -gt 2 ]; then
|
||||||
VERBOSE=2
|
VERBOSITY=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export VERBOSE
|
export VERBOSITY
|
||||||
|
|
||||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||||
|
|
||||||
@ -355,7 +355,7 @@ compiler() {
|
|||||||
[ "$1" = nolock ] && shift;
|
[ "$1" = nolock ] && shift;
|
||||||
shift
|
shift
|
||||||
|
|
||||||
options="--verbose=$VERBOSE"
|
options="--verbose=$VERBOSITY"
|
||||||
[ -n "$STARTUP_LOG" ] && options="$options --log=$STARTUP_LOG"
|
[ -n "$STARTUP_LOG" ] && options="$options --log=$STARTUP_LOG"
|
||||||
[ -n "$LOG_VERBOSITY" ] && options="$options --log_verbosity=$LOG_VERBOSITY";
|
[ -n "$LOG_VERBOSITY" ] && options="$options --log_verbosity=$LOG_VERBOSITY";
|
||||||
[ -n "$g_export" ] && options="$options --export"
|
[ -n "$g_export" ] && options="$options --export"
|
||||||
|
@ -59,7 +59,7 @@ VERSION=$(cat /usr/share/shorewall6-lite/version)
|
|||||||
|
|
||||||
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
||||||
|
|
||||||
VERBOSE=0
|
VERBOSITY=0
|
||||||
load_kernel_modules No
|
load_kernel_modules No
|
||||||
determine_capabilities
|
determine_capabilities
|
||||||
report_capabilities1
|
report_capabilities1
|
||||||
|
@ -149,9 +149,9 @@ get_config() {
|
|||||||
|
|
||||||
[ -n "${VERBOSITY:=2}" ]
|
[ -n "${VERBOSITY:=2}" ]
|
||||||
|
|
||||||
[ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY))
|
[ -n "$g_use_verbosity" ] && VERBOSITY=$g_use_verbosity || VERBOSITY=$(($g_verbose_offset + $VERBOSITY))
|
||||||
|
|
||||||
export VERBOSE
|
export VERBOSITY
|
||||||
|
|
||||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ progress_message() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -67,7 +67,7 @@ progress_message2() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -gt 0 ]; then
|
if [ $VERBOSITY -gt 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -78,7 +78,7 @@ progress_message3() # $* = Message
|
|||||||
local timestamp
|
local timestamp
|
||||||
timestamp=
|
timestamp=
|
||||||
|
|
||||||
if [ $VERBOSE -ge 0 ]; then
|
if [ $VERBOSITY -ge 0 ]; then
|
||||||
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
[ -n "$TIMESTAMP" ] && timestamp="$(date +%H:%M:%S) "
|
||||||
echo "${timestamp}$@"
|
echo "${timestamp}$@"
|
||||||
fi
|
fi
|
||||||
@ -897,7 +897,7 @@ report_capabilities() {
|
|||||||
echo " " $1: $setting
|
echo " " $1: $setting
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $VERBOSE -gt 1 ]; then
|
if [ $VERBOSITY -gt 1 ]; then
|
||||||
echo "Shorewall6 has detected the following ip6tables/netfilter capabilities:"
|
echo "Shorewall6 has detected the following ip6tables/netfilter capabilities:"
|
||||||
report_capability "Packet Mangling" $MANGLE_ENABLED
|
report_capability "Packet Mangling" $MANGLE_ENABLED
|
||||||
report_capability "Multi-port Match" $MULTIPORT
|
report_capability "Multi-port Match" $MULTIPORT
|
||||||
|
@ -132,7 +132,7 @@ syslog_circular_buffer() {
|
|||||||
#
|
#
|
||||||
packet_log() # $1 = number of messages
|
packet_log() # $1 = number of messages
|
||||||
{
|
{
|
||||||
if [ -n "$g_showmacs" -o $VERBOSE -gt 2 ]; then
|
if [ -n "$g_showmacs" -o $VERBOSITY -gt 2 ]; then
|
||||||
$g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/
|
$g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/
|
||||||
else
|
else
|
||||||
$g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/
|
$g_logread | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | head -n$1 | tac | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/
|
||||||
@ -371,7 +371,7 @@ show_command() {
|
|||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
x*)
|
x*)
|
||||||
@ -492,7 +492,7 @@ show_command() {
|
|||||||
capabilities)
|
capabilities)
|
||||||
[ $# -gt 1 ] && usage 1
|
[ $# -gt 1 ] && usage 1
|
||||||
determine_capabilities
|
determine_capabilities
|
||||||
VERBOSE=2
|
VERBOSITY=2
|
||||||
if [ -n "$g_filemode" ]; then
|
if [ -n "$g_filemode" ]; then
|
||||||
report_capabilities1
|
report_capabilities1
|
||||||
else
|
else
|
||||||
@ -654,7 +654,7 @@ dump_command() {
|
|||||||
|
|
||||||
g_ipt_options="$g_ipt_options $g_ipt_options1"
|
g_ipt_options="$g_ipt_options $g_ipt_options1"
|
||||||
|
|
||||||
[ $VERBOSE -lt 2 ] && VERBOSE=2
|
[ $VERBOSITY -lt 2 ] && VERBOSITY=2
|
||||||
|
|
||||||
[ -n "$g_debugging" ] && set -x
|
[ -n "$g_debugging" ] && set -x
|
||||||
[ $# -eq 0 ] || usage 1
|
[ $# -eq 0 ] || usage 1
|
||||||
@ -1088,11 +1088,11 @@ logwatch_command() {
|
|||||||
while [ -n "$option" ]; do
|
while [ -n "$option" ]; do
|
||||||
case $option in
|
case $option in
|
||||||
v*)
|
v*)
|
||||||
VERBOSE=$(($VERBOSE + 1 ))
|
VERBOSITY=$(($VERBOSITY + 1 ))
|
||||||
option=${option#v}
|
option=${option#v}
|
||||||
;;
|
;;
|
||||||
q*)
|
q*)
|
||||||
VERBOSE=$(($VERBOSE - 1 ))
|
VERBOSITY=$(($VERBOSITY - 1 ))
|
||||||
option=${option#q}
|
option=${option#q}
|
||||||
;;
|
;;
|
||||||
m*)
|
m*)
|
||||||
|
@ -178,15 +178,15 @@ get_config() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$g_use_verbosity" ] && VERBOSE=$g_use_verbosity || VERBOSE=$(($g_verbose_offset + $VERBOSITY))
|
[ -n "$g_use_verbosity" ] && VERBOSITY=$g_use_verbosity || VERBOSITY=$(($g_verbose_offset + $VERBOSITY))
|
||||||
|
|
||||||
if [ $VERBOSE -lt -1 ]; then
|
if [ $VERBOSITY -lt -1 ]; then
|
||||||
VERBOSE=-1
|
VERBOSITY=-1
|
||||||
elif [ $VERBOSE -gt 2 ]; then
|
elif [ $VERBOSITY -gt 2 ]; then
|
||||||
VERBOSE=2
|
VERBOSITY=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export VERBOSE
|
export VERBOSITY
|
||||||
|
|
||||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ compiler() {
|
|||||||
[ "$1" = nolock ] && shift;
|
[ "$1" = nolock ] && shift;
|
||||||
shift
|
shift
|
||||||
|
|
||||||
options="--verbose=$VERBOSE --family=6"
|
options="--verbose=$VERBOSITY --family=6"
|
||||||
[ -n "$STARTUP_LOG" ] && options="$options --log=$STARTUP_LOG"
|
[ -n "$STARTUP_LOG" ] && options="$options --log=$STARTUP_LOG"
|
||||||
[ -n "$LOG_VERBOSITY" ] && options="$options --log_verbosity=$LOG_VERBOSITY";
|
[ -n "$LOG_VERBOSITY" ] && options="$options --log_verbosity=$LOG_VERBOSITY";
|
||||||
[ -n "$g_export" ] && options="$options --export"
|
[ -n "$g_export" ] && options="$options --export"
|
||||||
|
@ -666,7 +666,7 @@ SHELL cat /etc/shorewall/rules.d/*.rules</programlisting></para>
|
|||||||
|
|
||||||
<member><emphasis role="bold">VARDIR</emphasis></member>
|
<member><emphasis role="bold">VARDIR</emphasis></member>
|
||||||
|
|
||||||
<member><emphasis role="bold">VERBOSE</emphasis></member>
|
<member>VERBOSE</member>
|
||||||
|
|
||||||
<member>VERBOSE_OFFSET</member>
|
<member>VERBOSE_OFFSET</member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<member><emphasis role="bold">VARDIR</emphasis></member>
|
<member><emphasis role="bold">VARDIR</emphasis></member>
|
||||||
|
|
||||||
<member><emphasis role="bold">VERBOSE</emphasis></member>
|
<member>VERBOSE</member>
|
||||||
|
|
||||||
<member>VERBOSE_OFFSET</member>
|
<member>VERBOSE_OFFSET</member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
<member><emphasis role="bold">VARDIR</emphasis></member>
|
<member><emphasis role="bold">VARDIR</emphasis></member>
|
||||||
|
|
||||||
<member><emphasis role="bold">VERBOSE</emphasis></member>
|
<member>VERBOSE</member>
|
||||||
|
|
||||||
<member>VERBOSE_OFFSET</member>
|
<member>VERBOSE_OFFSET</member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user