diff options
author | John Crispin <john@openwrt.org> | 2008-08-11 20:46:17 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-08-11 20:46:17 +0000 |
commit | 0f5cbca010c00b483bf7678ab7fa59dfafcd58d3 (patch) | |
tree | cabc65d29c86ca7841cae5d2f64499f7c4a86556 /package/firewall/files/new/20-firewall | |
parent | 5745e536d410a5f3b4a1e261a627cb98eb5e7e35 (diff) | |
download | mtk-20170518-0f5cbca010c00b483bf7678ab7fa59dfafcd58d3.zip mtk-20170518-0f5cbca010c00b483bf7678ab7fa59dfafcd58d3.tar.gz mtk-20170518-0f5cbca010c00b483bf7678ab7fa59dfafcd58d3.tar.bz2 |
uci firewall - remove implicit creation of zones, based on network interfaces
SVN-Revision: 12281
Diffstat (limited to 'package/firewall/files/new/20-firewall')
-rw-r--r-- | package/firewall/files/new/20-firewall | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/package/firewall/files/new/20-firewall b/package/firewall/files/new/20-firewall index a8ce17c..217e3f6 100644 --- a/package/firewall/files/new/20-firewall +++ b/package/firewall/files/new/20-firewall @@ -20,9 +20,7 @@ load_zones() { config_foreach load_zones zone -IFACE=$(find_config $INTERFACE) -[ -n "$IFACE" ] && - list_contains ZONE $IFACE || ZONE="$ZONE $IFACE" +[ -z "$ZONE" ] && exit 0 [ ifup = "$ACTION" ] && { for z in $ZONE; do |