[packages] strongswan: introduce /etc/ipsec.user file
[openwrt/svn-archive/archive.git] / net / strongswan / patches / 300-include-ipsec-user-script.patch
1 --- a/src/_updown/_updown.in
2 +++ b/src/_updown/_updown.in
3 @@ -16,11 +16,9 @@
4 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5 # for more details.
6
7 -# CAUTION: Installing a new version of strongSwan will install a new
8 -# copy of this script, wiping out any custom changes you make. If
9 -# you need changes, make a copy of this under another name, and customize
10 -# that, and use the (left/right)updown parameters in ipsec.conf to make
11 -# strongSwan use yours instead of this default one.
12 +# Add your custom ip rules to the /etc/ipsec.user file if you need that functionality.
13 +
14 +[ -e /etc/ipsec.user ] && . /etc/ipsec.user "$1"
15
16 # things that this script gets (from ipsec_pluto(8) man page)
17 #