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:
teastep 2005-08-15 18:30:59 +00:00
parent 42ee8d0c19
commit ef134da4b9

View File

@ -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)