From d46ae9ced2f626637b3f64aa4c1789958a3d992c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 10 Dec 2009 18:18:37 +0000 Subject: firewall: fix fallout from r18716 (fixes #6338) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18733 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/uci_firewall.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/firewall') diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh index 21485cb5d1..05fe39beb0 100755 --- a/package/firewall/files/uci_firewall.sh +++ b/package/firewall/files/uci_firewall.sh @@ -417,7 +417,8 @@ get_interface_zones() { fw_event() { local action="$1" local interface="$2" - local ifname="$(sh -c ". /etc/functions.sh; config_load network; config_get "$interface" ifname")" + local ifname="$(sh -c ". /etc/functions.sh; include /lib/network; scan_interfaces; config_get "$interface" ifname")" + add_zone= local up [ -z "$ifname" ] && return 0 @@ -503,6 +504,7 @@ fw_init() { echo "Loading zone defaults" config_foreach fw_zone_defaults zone uci_set_state firewall core loaded 1 + config_set core loaded 1 config_foreach fw_check_notrack zone INTERFACES="$(sh -c '. /etc/functions.sh; config_load network; config_foreach echo interface')" for interface in $INTERFACES; do -- cgit v1.2.3