Fixes issue #3939
This commit is contained in:
parent
f49e3415a8
commit
b8783e65e4
@ -44,12 +44,13 @@ start() {
|
|||||||
|
|
||||||
CMD_ARGS=
|
CMD_ARGS=
|
||||||
if "$CMD-restore" --help 2>&1 | grep -q wait=; then
|
if "$CMD-restore" --help 2>&1 | grep -q wait=; then
|
||||||
|
# 'wait' must be last on command line if secs not specified
|
||||||
CMD_ARGS=--wait
|
CMD_ARGS=--wait
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n $"${CMD}: Applying firewall rules: "
|
echo -n $"${CMD}: Applying firewall rules: "
|
||||||
|
|
||||||
"$CMD-restore" $CMD_ARGS "$IPTABLES_DATA"
|
"$CMD-restore" "$IPTABLES_DATA" $CMD_ARGS
|
||||||
ret="$?"
|
ret="$?"
|
||||||
if [ "$ret" -eq 0 ]; then
|
if [ "$ret" -eq 0 ]; then
|
||||||
echo OK
|
echo OK
|
||||||
|
Loading…
Reference in New Issue
Block a user