Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2455/scripts
Added Files:
radvd
Log Message:
initial check-in of radvd
fixed problem with mounting iso files
--- NEW FILE: radvd ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/radvd,v $
# $Revision: 1.1 $
# $Date: 2004/03/15 00:49:02 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: radvd
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=RADVD
case $1 in
build )
if [ "$CONFIG_RADVD" = "y" ]; then
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1
make $PMAKE || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_RADVD" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp/etc || exit 1
make install DESTDIR=$WORKDIR/tmp || exit 1
copy_docs $WORKDIR/tmp
copy_files $WORKDIR/tmp/usr $CDDIR || exit 1
copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1
cp radvd.conf.example $ETCDIR/etc/radvd.conf.sample || exit 1
cp $MYDIR/scripts/radvd $ETCDIR/etc/init.d || exit 1
rm -rf $WORKDIR/tmp || exit 1
echo "# Start RADVD?" >> $CONFIGFILE
echo "START_RADVD=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_RADVD=\"RADVD advertises IPv6 routers for IPv6 autoconfiguration\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|