Update of /cvsroot/devil-linux/build/config/etc/init.d
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23391/config/etc/init.d
Added Files:
beep
Log Message:
added "beep" after system has completed booting
--- NEW FILE: beep ---
#!/bin/bash
#
# $Source: /cvsroot/devil-linux/build/config/etc/init.d/beep,v $
# $Revision: 1.1 $
# $Date: 2005/07/25 18:10:18 $
#
# http://www.devil-linux.org
#
### BEGIN INIT INFO
# Provides: beep
# Required-Start: $last
# Required-Stop:
# Default-Start:
# Default-Stop:
# Description: starts beep
### END INIT INFO
# settings
source /etc/sysconfig/config
# parameters
NAME="beep system-up noises"
CONFIGNAME=BEEP
#DAEMON=/usr/sbin/foo
#PARAMETER=
# source function library
source /etc/init.d/functions
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
#if [ ! -e $DAEMON ]; then
# echo
# echo "$DAEMON not found. Did you install the package?"
# exit 1
#fi
case "$1" in
start)
echo -n "Starting $NAME: "
# loadproc $DAEMON $PARAMETER
# #DL = -.. .-..
beep -f 880 -l 400
beep -f 3000 -l 200
beep -f 3000 -l 200 -D 600
beep -f 3000 -l 200
beep -f 880 -l 400
beep -f 3000 -l 200
beep -f 3000 -l 200
;;
stop)
# echo -n "Shutting down $NAME: "
# killproc $DAEMON
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
|