Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31086/scripts
Added Files:
wol
Log Message:
Added WOL (Wake on LAN)
--- NEW FILE: wol ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/wol,v $
# $Revision: 1.1 $
# $Date: 2004/04/15 14:39:41 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: wol
# 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=WOL
set -x
case $1 in
build )
if [ "$CONFIG_WOL" = "y" ]; then
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-nls || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_WOL" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp || exit 1
make install DESTDIR=$WORKDIR/tmp || exit 1
rm -f $WORKDIR/tmp/usr/info/dir
copy_docs $WORKDIR/tmp
rm -rf $WORKDIR/tmp/usr/{man,info} || exit 1
mkdir -p $CDDIR
copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1
rm -rf $WORKDIR/tmp || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|