[package] firewall: move the config_get out of the loop, no need to call it multiple...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 14 Sep 2009 15:18:48 +0000 (15:18 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 14 Sep 2009 15:18:48 +0000 (15:18 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17581 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/firewall/files/20-firewall

index 32f8a85..1cfc1b9 100644 (file)
@@ -27,9 +27,10 @@ config_foreach load_zones zone
 }
 
 [ ifdown = "$ACTION" ] && {
+       local up
+       config_get up "$INTERFACE" up
+
        for z in $ZONE; do 
-               local up
-               config_get up "$INTERFACE" up
                [ "$up" == "1" ] && delif "$INTERFACE" "$ifname" "$z"
        done
 }
This page took 0.024819 seconds and 4 git commands to generate.