diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-11-15 01:37:02 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-11-15 01:37:02 +0000 |
commit | 4137cc5bf1430055f65a867b7b3b2245fec19f52 (patch) | |
tree | 09f7ccc425815b6dd27788f07db9c239ffa1719b /sysconfig/network-scripts/ifdown-ipsec | |
parent | 10fa5cbefcffc30ddb589195dffb8a1114734b13 (diff) | |
download | initscripts-4137cc5bf1430055f65a867b7b3b2245fec19f52.tar initscripts-4137cc5bf1430055f65a867b7b3b2245fec19f52.tar.gz initscripts-4137cc5bf1430055f65a867b7b3b2245fec19f52.tar.bz2 initscripts-4137cc5bf1430055f65a867b7b3b2245fec19f52.tar.xz initscripts-4137cc5bf1430055f65a867b7b3b2245fec19f52.zip |
Add a way to manually manage racoon.conf, e.g. to handle separate tunnels with
a shared peer endpoint (#159343)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ipsec')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ipsec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-ipsec b/sysconfig/network-scripts/ifdown-ipsec index 82a71a9a..56b31c43 100755 --- a/sysconfig/network-scripts/ifdown-ipsec +++ b/sysconfig/network-scripts/ifdown-ipsec @@ -76,7 +76,7 @@ ${EXCLUDE_SRCNET:+spddelete $SPD_SRC $SPD_SRC any -P out;} ${EXCLUDE_SRCNET:+spddelete $SPD_SRC $SPD_SRC any -P in;} EOF -if [ "$KEYING" = "automatic" ]; then +if [ "$KEYING" = "automatic" -a -n "$IKE_METHOD" ]; then racoontmp=`mktemp /etc/racoon/racoon.XXXXXX` grep -v "^include \"/etc/racoon/$DST.conf\";" /etc/racoon/racoon.conf >> $racoontmp mv -f $racoontmp /etc/racoon/racoon.conf |