projects
/
openwrt
/
staging
/
linusw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715285d
)
firewall: move the config_get out of the loop, no need to call it multiple times
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 14 Sep 2009 15:18:48 +0000
(15:18 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 14 Sep 2009 15:18:48 +0000
(15:18 +0000)
SVN-Revision: 17581
package/firewall/files/20-firewall
patch
|
blob
|
history
diff --git
a/package/firewall/files/20-firewall
b/package/firewall/files/20-firewall
index 32f8a853da727f8c072ba8942bdfd047caca3e54..1cfc1b9c0e266a708af2dd424fbe0b83c93e6113 100644
(file)
--- 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
}