From: <smi...@us...> - 2004-03-04 01:32:46
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9975/scripts/scripts Added Files: adsl Log Message: added adsl init script --- NEW FILE: adsl --- #!/bin/bash # # $Source: /cvsroot/devil-linux/build/scripts/scripts/adsl,v $ # $Revision: 1.1 $ # $Date: 2004/03/04 01:11:55 $ # # http://www.devil-linux.org # ### BEGIN INIT INFO # Provides: adsl # Required-Start: $network $syslog firewall # Required-Stop: $network $syslog # Default-Start: 3 5 # Default-Stop: 0 6 # Description: starts a ADSL connection on bootup ### END INIT INFO # settings source /etc/sysconfig/config # parameters NAME="ADSL" CONFIGNAME=ADSL # 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 case "$1" in start) echo "Starting ADSL connection: " /usr/sbin/adsl-start ;; stop) echo "Closing ADSL connection: " /usr/sbin/adsl-stop ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac |