Keep files in /etc/openvpn during sysupgrade
authorTravis Kemen <thepeople@openwrt.org>
Sun, 20 Mar 2011 01:29:40 +0000 (01:29 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Sun, 20 Mar 2011 01:29:40 +0000 (01:29 +0000)
SVN-Revision: 26243

net/openvpn/Makefile
net/openvpn/files/openvpn.upgrade [new file with mode: 0644]

index fe9a20b9a663af3990cce33283bd5773e5652d40..7e3a7b05dfe9e49df2817c70df75ea7036dd9f73 100644 (file)
@@ -77,6 +77,8 @@ define Package/openvpn/install
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
        $(INSTALL_DIR) $(1)/etc/openvpn
+       $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
+       $(INSTALL_DATA) files/openvpn.upgrade $(1)/lib/upgrade/keep.d/openvpn
 endef
 
 define Package/openvpn-easy-rsa/install
diff --git a/net/openvpn/files/openvpn.upgrade b/net/openvpn/files/openvpn.upgrade
new file mode 100644 (file)
index 0000000..6ae49d2
--- /dev/null
@@ -0,0 +1 @@
+/etc/openvpn/