aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-10 18:18:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-10 18:18:37 +0000
commit10f627db5c4dd5bb71ece1f8aabebd0de901bce8 (patch)
tree5d38f107b3cb5208d0ab57dbbe37c0f82121420c /package
parentae89e435d949cf911738fd5f36ca4d7f4605df3e (diff)
downloadupstream-10f627db5c4dd5bb71ece1f8aabebd0de901bce8.tar.gz
upstream-10f627db5c4dd5bb71ece1f8aabebd0de901bce8.tar.bz2
upstream-10f627db5c4dd5bb71ece1f8aabebd0de901bce8.zip
firewall: fix fallout from r18716 (fixes #6338)
SVN-Revision: 18733
Diffstat (limited to 'package')
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh4
1 files changed, 3 insertions, 1 deletions
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