From 88715598b1a2acf985325abbbb26cf31b8ac2dfb Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 13 Sep 2018 12:26:20 +0200 Subject: [PATCH] strongswan: fix OpenWrt hotplug script handling Commit 6cd8fcabe added ipsec hotplug script support by calling "exec /sbin/hotplug-call ipsec". Using the exec call breaks the insertion of iptables rules by the _updown.in script as hotplug-call just replaces the current shell meaning the commands following exec do not run since the shell is replaced and as a result lead to connectivity issues. Fix this by removing the exec command in front of /sbin/hotplug-call. Signed-off-by: Hans Dedecker (cherry picked from commit d0ac611bf0dbf10d16e1b3dae6ba1d3ea80befc6) --- net/strongswan/patches/300-include-ipsec-hotplug.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/strongswan/patches/300-include-ipsec-hotplug.patch b/net/strongswan/patches/300-include-ipsec-hotplug.patch index 8e54050def..a61da3a48f 100644 --- a/net/strongswan/patches/300-include-ipsec-hotplug.patch +++ b/net/strongswan/patches/300-include-ipsec-hotplug.patch @@ -9,7 +9,7 @@ +# This files/scripts are executed by the openwrt hotplug functionality on +# ipsec events. + -+exec /sbin/hotplug-call ipsec "$1" ++/sbin/hotplug-call ipsec "$1" + # PLUTO_VERSION # indicates what version of this interface is being -- 2.30.2