mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Make -q work with the try command
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2494 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
42ee8d0c19
commit
ef134da4b9
@ -1055,15 +1055,16 @@ case "$1" in
|
|||||||
try)
|
try)
|
||||||
[ -n "$SHOREWALL_DIR" ] && startup_error "ERROR: -c option may not be used with \"try\""
|
[ -n "$SHOREWALL_DIR" ] && startup_error "ERROR: -c option may not be used with \"try\""
|
||||||
[ $# -lt 2 -o $# -gt 3 ] && usage 1
|
[ $# -lt 2 -o $# -gt 3 ] && usage 1
|
||||||
if ! $0 $debugging -c $2 restart; then
|
[ -n "$QUIET" ] && QUIET=-q
|
||||||
|
if ! $0 $debugging $QUIET -c $2 restart; then
|
||||||
if ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
|
if ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
|
||||||
$0 start
|
$0 $QUIET start
|
||||||
fi
|
fi
|
||||||
elif ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
|
elif ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
|
||||||
$0 start
|
$0 $QUIET start
|
||||||
elif [ $# -eq 3 ]; then
|
elif [ $# -eq 3 ]; then
|
||||||
sleep $3
|
sleep $3
|
||||||
$0 restart
|
$0 $QUIET restart
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
logwatch)
|
logwatch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user