aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2011-03-20 00:57:47 +0000
committerTravis Kemen <thepeople@openwrt.org>2011-03-20 00:57:47 +0000
commitbea7583b5ecd2d0911a4025db4260f0680c28619 (patch)
tree95e6111b90a64ed3ad8696201e54f5b3140d9372
parentc07222994ca26cef179beb81db551fa9a80025d8 (diff)
downloadupstream-bea7583b5ecd2d0911a4025db4260f0680c28619.tar.gz
upstream-bea7583b5ecd2d0911a4025db4260f0680c28619.tar.bz2
upstream-bea7583b5ecd2d0911a4025db4260f0680c28619.zip
Keep firewall.user during sysupgrades
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26241 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/firewall/Makefile2
-rw-r--r--package/firewall/files/firewall.upgrade1
2 files changed, 3 insertions, 0 deletions
diff --git a/package/firewall/Makefile b/package/firewall/Makefile
index a8a62c287d..15237ff8f4 100644
--- a/package/firewall/Makefile
+++ b/package/firewall/Makefile
@@ -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
index 0000000000..64f63eb390
--- /dev/null
+++ b/package/firewall/files/firewall.upgrade
@@ -0,0 +1 @@
+/etc/firewall.user