mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[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
This commit is contained in:
parent
c148764357
commit
1e6ac8639e
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user