aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ipsec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-07-02 23:38:12 +0000
committerBill Nottingham <notting@redhat.com>2003-07-02 23:38:12 +0000
commit5f300c1d2d2e73479d4486d0c5773cff107582d1 (patch)
treee4cbcc1fd90c29dd689ede552c427d7c5be13930 /sysconfig/network-scripts/ifup-ipsec
parent478722157f6238c189c102bd960ca906935fb8dd (diff)
downloadinitscripts-5f300c1d2d2e73479d4486d0c5773cff107582d1.tar
initscripts-5f300c1d2d2e73479d4486d0c5773cff107582d1.tar.gz
initscripts-5f300c1d2d2e73479d4486d0c5773cff107582d1.tar.bz2
initscripts-5f300c1d2d2e73479d4486d0c5773cff107582d1.tar.xz
initscripts-5f300c1d2d2e73479d4486d0c5773cff107582d1.zip
that ';' is important. damned if i know why, i think the parser is buggy.
fix quoting of include files.
Diffstat (limited to 'sysconfig/network-scripts/ifup-ipsec')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipsec5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-ipsec b/sysconfig/network-scripts/ifup-ipsec
index b46d7e2a..cf12f722 100755
--- a/sysconfig/network-scripts/ifup-ipsec
+++ b/sysconfig/network-scripts/ifup-ipsec
@@ -218,6 +218,7 @@ EOF
fi
if [ ! -f /etc/racoon/$DST.conf -o /etc/racoon/$DST.conf -ot $1 ] ; then
cat > /etc/racoon/$DST.conf << EOF
+;
remote $DST
{
exchange_mode aggressive, main;
@@ -273,8 +274,8 @@ EOF
EOF
esac
racoontmp=`mktemp /etc/racoon/racoon.XXXXXX`
- grep -v "^include /etc/racoon/$DST.conf" /etc/racoon/racoon.conf >> $racoontmp
- echo "include /etc/racoon/$DST.conf" >> $racoontmp
+ grep -v "^include \"/etc/racoon/$DST.conf\"" /etc/racoon/racoon.conf >> $racoontmp
+ echo "include \"/etc/racoon/$DST.conf\"" >> $racoontmp
mv -f $racoontmp /etc/racoon/racoon.conf
pidof -x /usr/sbin/racoon > /dev/null 2>&1 && killall -HUP /usr/sbin/racoon
fi