From: Philip Prindeville Date: Thu, 1 Apr 2021 20:43:12 +0000 (-0600) Subject: strongswan: remove synthesized ipsec conf files X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=baa38a14200d0549a0531be92f3ef89e526063ac;p=feed%2Fpackages.git strongswan: remove synthesized ipsec conf files If you shutdown ipsec service, and it doesn't clean up /var/ipsec/ipsec.conf, then when you start swanctl service it might see an incompatible file on startup. Remedy is to remove unneeded files when shutting down the service. They can always be regenerated when the service starts again. Signed-off-by: Philip Prindeville --- diff --git a/net/strongswan/Makefile b/net/strongswan/Makefile index 24d30915ee..06ec598baa 100644 --- a/net/strongswan/Makefile +++ b/net/strongswan/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=strongswan PKG_VERSION:=5.9.1 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/ diff --git a/net/strongswan/files/ipsec.init b/net/strongswan/files/ipsec.init index ed55b95a98..bbfa573d69 100644 --- a/net/strongswan/files/ipsec.init +++ b/net/strongswan/files/ipsec.init @@ -331,6 +331,12 @@ reload_service() { start } +stop_service() { + ipsec_reset + swan_reset + secret_reset +} + check_ipsec_interface() { local intf