From 0babb39d899e52db9fa055d7128ed8b0f0e0b6e9 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 21 May 2007 15:17:49 +0000 Subject: [PATCH] Defer check for bridge until run-time git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6429 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-shell/compiler | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Shorewall-shell/compiler b/Shorewall-shell/compiler index 310527376..d8eb6324d 100755 --- a/Shorewall-shell/compiler +++ b/Shorewall-shell/compiler @@ -3555,9 +3555,11 @@ __EOF__ for interface in $interfaces; do if [ -n "$BRIDGING" ]; then - is_bridge=$( brctl show 2> /dev/null | grep "^$interface[[:space:]]" ) - [ -n "$is_bridge" ] && \ - do_iptables -A $(forward_chain $interface) -p udp -o $interface --dport 67:68 -j ACCEPT + indent >&3 << __EOF__ +is_bridge="\$( brctl show 2> /dev/null | grep '^$interface[[:space:]]' )" +[ -n "\$is_bridge" ] && \ + run_iptables -A $(forward_chain $interface) -p udp -o $interface --dport 67:68 -j ACCEPT +__EOF__ fi run_iptables -A $(input_chain $interface) -p udp --dport 67:68 -j ACCEPT run_iptables -A $(out_chain $interface) -p udp --dport 67:68 -j ACCEPT