strongswan: fix OpenWrt hotplug script handling
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 13 Sep 2018 10:26:20 +0000 (12:26 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 13 Sep 2018 12:37:53 +0000 (14:37 +0200)
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 <dedeckeh@gmail.com>
net/strongswan/patches/300-include-ipsec-hotplug.patch

index 8e54050defc21debdfd42d8bfc9450d020cb3a35..a61da3a48f49d2e66499f006d9130619291d0489 100644 (file)
@@ -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