[package] firewall: fix serious bug in state var handling (#9746)
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Jul 2011 15:29:10 +0000 (15:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Jul 2011 15:29:10 +0000 (15:29 +0000)
SVN-Revision: 27711

package/firewall/Makefile
package/firewall/files/lib/core_interface.sh

index 453da4ee379aeeec987a320aaa1ff5ff1add1614..394a2075dfc406a6b4e9869b4094c3a71f8b1ee3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=firewall
 
 PKG_VERSION:=2
-PKG_RELEASE:=31
+PKG_RELEASE:=32
 
 include $(INCLUDE_DIR)/package.mk
 
index ab58201e24dfed463bc09dd70ef9b83defa1ea0a..84e07e0e25d69d7a07c0107374e9b9fa46b95c8b 100644 (file)
@@ -12,7 +12,7 @@ fw__uci_state_add() {
                val="${val:+$val${e1:+ }}$e1"
        done
 
-       uci_toggle_state $var "$val"
+       uci_toggle_state firewall core $var "$val"
 }
 
 fw__uci_state_del() {
@@ -28,7 +28,7 @@ fw__uci_state_del() {
                rest="${rest:+$rest${e1:+ }}$e1"
        done
 
-       uci_toggle_state $var "$val"
+       uci_toggle_state firewall core $var "$val"
 }
 
 fw_configure_interface() {