[OpenWrt-Devel] [PATCH 4/4] conntrack-tools: preserve /etc/conntrackd during upgrade

Stijn Tintel stijn at linux-ipv6.be
Wed Nov 11 11:13:54 EST 2015


Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 package/network/utils/conntrack-tools/Makefile                 | 2 ++
 package/network/utils/conntrack-tools/files/conntrackd.upgrade | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 package/network/utils/conntrack-tools/files/conntrackd.upgrade

diff --git a/package/network/utils/conntrack-tools/Makefile b/package/network/utils/conntrack-tools/Makefile
index 51d3c41..a7a28f2 100644
--- a/package/network/utils/conntrack-tools/Makefile
+++ b/package/network/utils/conntrack-tools/Makefile
@@ -71,9 +71,11 @@ define Package/conntrackd/install
 	$(INSTALL_DIR) \
 		$(1)/etc/conntrackd \
 		$(1)/etc/init.d \
+		$(1)/lib/upgrade/keep.d \
 		$(1)/usr/sbin
 	$(INSTALL_BIN) 	$(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
 	$(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
+	$(INSTALL_DATA) ./files/conntrackd.upgrade $(1)/lib/upgrade/keep.d/conntrackd
 endef
 
 $(eval $(call BuildPackage,conntrack))
diff --git a/package/network/utils/conntrack-tools/files/conntrackd.upgrade b/package/network/utils/conntrack-tools/files/conntrackd.upgrade
new file mode 100644
index 0000000..bcff8a2
--- /dev/null
+++ b/package/network/utils/conntrack-tools/files/conntrackd.upgrade
@@ -0,0 +1 @@
+/etc/conntrackd/
-- 
2.4.6
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list