mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 16:54:10 +01: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)
|
||||
[ -n "$SHOREWALL_DIR" ] && startup_error "ERROR: -c option may not be used with \"try\""
|
||||
[ $# -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
|
||||
$0 start
|
||||
$0 $QUIET start
|
||||
fi
|
||||
elif ! $IPTABLES -L shorewall > /dev/null 2> /dev/null; then
|
||||
$0 start
|
||||
$0 $QUIET start
|
||||
elif [ $# -eq 3 ]; then
|
||||
sleep $3
|
||||
$0 restart
|
||||
$0 $QUIET restart
|
||||
fi
|
||||
;;
|
||||
logwatch)
|
||||
|
Loading…
Reference in New Issue
Block a user