diff options
author | Bill Nottingham <notting@redhat.com> | 2003-07-02 23:38:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-07-02 23:38:12 +0000 |
commit | 5f300c1d2d2e73479d4486d0c5773cff107582d1 (patch) | |
tree | e4cbcc1fd90c29dd689ede552c427d7c5be13930 | |
parent | 478722157f6238c189c102bd960ca906935fb8dd (diff) | |
download | initscripts-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.
-rwxr-xr-x | sysconfig/network-scripts/ifup-ipsec | 5 |
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 |