Keep ipsec configuration information across upgrades
The /etc/ipsec.d directory holds the certificates and CRLs used for IPsec, many of which may have been uploaded by users. /etc/ipsec.conf and /etc/ipsec.secrets hold user configuration for the IPsec daemons. Add a keep.d file to preserve these files/directories across upgrades. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> git-svn-id: svn://svn.openwrt.org/openwrt/packages@29584 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
83951c8645
commit
6d1726c72d
@ -97,6 +97,8 @@ define Package/openswan/install
|
||||
rm -rf $(1)/var
|
||||
rm -rf $(1)/etc/rc.d
|
||||
find $(1) -name \*.old | xargs rm -rf
|
||||
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
|
||||
$(INSTALL_DATA) files/ipsec.upgrade $(1)/lib/upgrade/keep.d/ipsec
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,openswan))
|
||||
|
3
net/openswan/files/ipsec.upgrade
Normal file
3
net/openswan/files/ipsec.upgrade
Normal file
@ -0,0 +1,3 @@
|
||||
/etc/ipsec.conf
|
||||
/etc/ipsec.d/
|
||||
/etc/ipsec.secrets
|
Loading…
x
Reference in New Issue
Block a user