Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30542
Added Files:
ucarp
Log Message:
added ucarp
--- NEW FILE: ucarp ---
#!/bin/bash
# : /cvsroot/devil-linux/build/scripts/ucarp,v $
# : 1.2 $
# : 2005/09/30 14:43:04 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: ucarp
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: allows a couple of hosts to share common virtual IP addresses in order to provide automatic failover
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
case $1 in
build )
if [ "$CONFIG_UCARP" = "y" ]; then
./configure || exit 1
make || exit 1
fi
;;
install )
if [ "$CONFIG_UCARP" = "y" ]; then
cp src/ucarp $CDDIR/usr/bin/ || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|