summaryrefslogtreecommitdiff
path: root/package
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
commita2cd7b28837895cf2011a4ee02637d5e0e2fe03d (patch)
treec7401aadc2f74efc3144bcc72a9cd74d25e7e27a /package
parent8d75dcb4b882eeb2113fbe2fa684d0c83caff4df (diff)
downloadmtk-20170518-a2cd7b28837895cf2011a4ee02637d5e0e2fe03d.zip
mtk-20170518-a2cd7b28837895cf2011a4ee02637d5e0e2fe03d.tar.gz
mtk-20170518-a2cd7b28837895cf2011a4ee02637d5e0e2fe03d.tar.bz2
Keep firewall.user during sysupgrades
SVN-Revision: 26241
Diffstat (limited to 'package')
-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 a8a62c2..15237ff 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 0000000..64f63eb
--- /dev/null
+++ b/package/firewall/files/firewall.upgrade
@@ -0,0 +1 @@
+/etc/firewall.user