diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-09-14 15:18:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-09-14 15:18:48 +0000 |
commit | 1e6ac8639eda0e201865f166e2abc62cfd26f43c (patch) | |
tree | b02594a675751801e69d94da223deff3cf3106a9 /package/firewall | |
parent | c1487643573180a8f2eef7bee8b595797a8bd5b9 (diff) | |
download | upstream-1e6ac8639eda0e201865f166e2abc62cfd26f43c.tar.gz upstream-1e6ac8639eda0e201865f166e2abc62cfd26f43c.tar.bz2 upstream-1e6ac8639eda0e201865f166e2abc62cfd26f43c.zip |
[package] firewall: move the config_get out of the loop, no need to call it multiple times
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17581 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rw-r--r-- | package/firewall/files/20-firewall | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/firewall/files/20-firewall b/package/firewall/files/20-firewall index 32f8a853da..1cfc1b9c0e 100644 --- a/package/firewall/files/20-firewall +++ b/package/firewall/files/20-firewall @@ -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 } |