|
From: Heiko Z. <smi...@us...> - 2004-12-30 20:14:18
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3925/scripts Modified Files: ipsec-tools Log Message: start racoon only on demand Index: ipsec-tools =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/ipsec-tools,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ipsec-tools 16 Jan 2004 19:16:56 -0000 1.1 +++ ipsec-tools 30 Dec 2004 20:14:08 -0000 1.2 @@ -21,6 +21,21 @@ source /etc/sysconfig/config source /etc/init.d/functions +# parameters +CONFIGNAME=IPSEC_TOOLS + +eval START=\$START_$CONFIGNAME + +# Determine the base and follow a runlevel link name. +base=${0##*/} +link=${base#*[SK][0-9][0-9]} + +# Force execution if not called by a runlevel directory. +test $link = $base && START=yes +test "$START" = "yes" || exit 0 + + + # Check for missing binaries (stale symlinks should not happen) racoon=/usr/sbin/racoon setkey=/usr/sbin/racoon |