From f9a92015786084daaa2bcd69e25fc3a83c25d9aa Mon Sep 17 00:00:00 2001 From: oblique Date: Sun, 20 Mar 2016 17:48:37 +0200 Subject: [PATCH] Do not die on cleanup --- create_ap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create_ap b/create_ap index eee7a2f..488fecd 100755 --- a/create_ap +++ b/create_ap @@ -741,12 +741,12 @@ _cleanup() { if [[ "$SHARE_METHOD" != "bridge" ]]; then if [[ $NO_DNS -eq 0 ]]; then - iptables -w -D INPUT -p tcp -m tcp --dport 5353 -j ACCEPT || die - iptables -w -D INPUT -p udp -m udp --dport 5353 -j ACCEPT || die + iptables -w -D INPUT -p tcp -m tcp --dport 5353 -j ACCEPT + iptables -w -D INPUT -p udp -m udp --dport 5353 -j ACCEPT iptables -w -t nat -D PREROUTING -s ${GATEWAY%.*}.0/24 -d ${GATEWAY} \ - -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 5353 || die + -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 5353 iptables -w -t nat -D PREROUTING -s ${GATEWAY%.*}.0/24 -d ${GATEWAY} \ - -p udp -m udp --dport 53 -j REDIRECT --to-ports 5353 || die + -p udp -m udp --dport 53 -j REDIRECT --to-ports 5353 fi iptables -w -D INPUT -p udp -m udp --dport 67 -j ACCEPT fi