Allow iptables rule delete to fail

After this rule is deleted the first time, it won't exist any longer, so
we need to allow the command to fail by adding a '|| true'.

Change-Id: I76c81b2456509dc7ef12e734caf2bfc43630296f
This commit is contained in:
James Slagle 2015-03-30 07:51:14 -04:00
parent cefa34bb18
commit b32b22f327

View File

@ -21,5 +21,4 @@ iptables -t nat -X BOOTSTACK_MASQ || true
# Rename the new chain into permanence. # Rename the new chain into permanence.
iptables -t nat -E BOOTSTACK_MASQ_NEW BOOTSTACK_MASQ iptables -t nat -E BOOTSTACK_MASQ_NEW BOOTSTACK_MASQ
# remove forwarding rule (fixes bug 1183099) # remove forwarding rule (fixes bug 1183099)
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited || true