Keep firewall.user during sysupgrades
authorTravis Kemen <thepeople@openwrt.org>
Sun, 20 Mar 2011 00:57:47 +0000 (00:57 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Sun, 20 Mar 2011 00:57:47 +0000 (00:57 +0000)
SVN-Revision: 26241

package/firewall/Makefile
package/firewall/files/firewall.upgrade [new file with mode: 0644]

index a8a62c2..15237ff 100644 (file)
@@ -51,6 +51,8 @@ define Package/firewall/install
        $(INSTALL_DATA) ./files/reflection.hotplug $(1)/etc/hotplug.d/firewall/10-nat-reflection
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/firewall.user $(1)/etc
+       $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
+       $(INSTALL_DATA) ./files/firewall.upgrade $(1)/lib/upgrade/keep.d/firewall
 endef
 
 $(eval $(call BuildPackage,firewall))
diff --git a/package/firewall/files/firewall.upgrade b/package/firewall/files/firewall.upgrade
new file mode 100644 (file)
index 0000000..64f63eb
--- /dev/null
@@ -0,0 +1 @@
+/etc/firewall.user