Browse Source

firewall: properly dispatch delif events if the network has a different name then the corresponding zone

SVN-Revision: 17580
Jo-Philipp Wich 16 years ago
parent
commit
715285dd43
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package/firewall/Makefile
  2. 1 1
      package/firewall/files/20-firewall

+ 1 - 1
package/firewall/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=firewall
 
 PKG_VERSION:=1
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 include $(INCLUDE_DIR)/package.mk
 

+ 1 - 1
package/firewall/files/20-firewall

@@ -29,7 +29,7 @@ config_foreach load_zones zone
 [ ifdown = "$ACTION" ] && {
 	for z in $ZONE; do 
 		local up
-		config_get up $z up
+		config_get up "$INTERFACE" up
 		[ "$up" == "1" ] && delif "$INTERFACE" "$ifname" "$z"
 	done
 }