move /etc/config/firewall to /etc/firewall.config to prevent it from interfering...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Feb 2008 22:03:18 +0000 (22:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Feb 2008 22:03:18 +0000 (22:03 +0000)
SVN-Revision: 10383

package/iptables/Makefile
package/iptables/files/firewall.init

index aefc7ddce89f6b7ea06ef3e5d5d3f548e362f9d2..8f24a3b3db8f178e95f69e7598180926183e778f 100644 (file)
@@ -40,7 +40,7 @@ $(call Package/iptables/Default)
 endef
 
 define Package/iptables/conffiles
-/etc/config/firewall
+/etc/firewall.config
 /etc/firewall.user
 endef
 
@@ -237,7 +237,7 @@ endef
 
 define Package/iptables/install
        $(INSTALL_DIR) $(1)/etc/config
-       $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
+       $(INSTALL_DATA) ./files/firewall.config $(1)/etc/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
        $(INSTALL_BIN) ./files/firewall.user $(1)/etc/
index 2d8c5edbdb85f581f68fcf2ac43f0dcbaa95bd6e..0da97f836ff553870c27bde21dec4657c131e267 100755 (executable)
@@ -122,9 +122,9 @@ start() {
 
        ## USER RULES
        [ -f /etc/firewall.user ] && . /etc/firewall.user
-       [ -n "$WAN" -a -e /etc/config/firewall ] && {
+       [ -n "$WAN" -a -e /etc/firewall.config ] && {
                export WAN
-               awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/config/firewall | ash
+               awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/firewall.config | ash
        }
 }