aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-07-03 03:45:00 +0000
committerBill Nottingham <notting@redhat.com>2003-07-03 03:45:00 +0000
commit5220f528fd7f93d1202d7bb6144adcdd46764b29 (patch)
treed5c84ac07c03a31fe3e282020a7f171a0fe74a94 /sysconfig/network-scripts
parentce780ea7dcd31ea95664863e378d1e374b0b77be (diff)
downloadinitscripts-5220f528fd7f93d1202d7bb6144adcdd46764b29.tar
initscripts-5220f528fd7f93d1202d7bb6144adcdd46764b29.tar.gz
initscripts-5220f528fd7f93d1202d7bb6144adcdd46764b29.tar.bz2
initscripts-5220f528fd7f93d1202d7bb6144adcdd46764b29.tar.xz
initscripts-5220f528fd7f93d1202d7bb6144adcdd46764b29.zip
always add info to /etc/racoon/racoon.confr7-26
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipsec15
1 files changed, 9 insertions, 6 deletions
diff --git a/sysconfig/network-scripts/ifup-ipsec b/sysconfig/network-scripts/ifup-ipsec
index a8d5fe5d..deb8b40d 100755
--- a/sysconfig/network-scripts/ifup-ipsec
+++ b/sysconfig/network-scripts/ifup-ipsec
@@ -263,11 +263,14 @@ 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
- mv -f $racoontmp /etc/racoon/racoon.conf
- pidof -x /usr/sbin/racoon > /dev/null 2>&1 && killall -HUP /usr/sbin/racoon
fi
- pidof -x /usr/sbin/racoon || /usr/sbin/racoon
+ 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
+ mv -f $racoontmp /etc/racoon/racoon.conf
+ if pidof -x /usr/sbin/racoon > /dev/null 2>&1 ; then
+ killall -HUP /usr/sbin/racooon
+ else
+ /usr/sbin/racoon
+ fi
fi