Retry return status 4 from iptables

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7765 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2007-11-26 22:34:36 +00:00
parent c300f63de7
commit 43b00fbe35
5 changed files with 64 additions and 45 deletions

View File

@ -103,7 +103,12 @@ startup_error() # $* = Error Message
#
run_iptables()
{
if ! $IPTABLES $@; then
while [ 1 ]; do
$IPTABLES $@
[ $? -ne 4 ] && break
done
if [ $? -ne 0 ]; then
error_message "ERROR: Command \"$IPTABLES $@\" Failed"
stop_firewall
exit 2