From 0a121a8ecd6de894c14d60daf9da2022ec47405c Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 11 Jun 2001 13:49:39 +0000 Subject: Initial revision --- .../rp-pppoe/scripts/adsl-init-turbolinux.in | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100755 mdk-stage1/rp-pppoe/scripts/adsl-init-turbolinux.in (limited to 'mdk-stage1/rp-pppoe/scripts/adsl-init-turbolinux.in') diff --git a/mdk-stage1/rp-pppoe/scripts/adsl-init-turbolinux.in b/mdk-stage1/rp-pppoe/scripts/adsl-init-turbolinux.in new file mode 100755 index 000000000..3b22f1345 --- /dev/null +++ b/mdk-stage1/rp-pppoe/scripts/adsl-init-turbolinux.in @@ -0,0 +1,62 @@ +#!/bin/sh +# +# adsl This script starts or stops an ADSL connection +# +# chkconfig: 2345 99 01 +# description: Connects to ADSL provider +# +# Copyright (C) 2000 Roaring Penguin Software Inc. This software may +# be distributed under the terms of the GNU General Public License, version +# 2 or any later version. + +# Source function library if it exists +test -r /etc/rc.d/init.d/functions && . /etc/rc.d/init.d/functions + +# From AUTOCONF +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +# Paths to programs +START=@sbindir@/adsl-start +STOP=@sbindir@/adsl-stop +STATUS=@sbindir@/adsl-status +case "$1" in + start) + echo -n "Bringing up ADSL link: " + + $START + if [ $? = 0 ] ; then + echo success + touch /var/lock/subsys/adsl + else + echo failure + fi + ;; + + stop) + echo -n "Shutting down ADSL link: " + + $STOP > /dev/null 2>&1 + if [ $? = 0 ] ; then + echo success + rm -f /var/lock/subsys/adsl + else + echo failure + fi + ;; + + restart) + $0 stop + $0 start + ;; + + status) + $STATUS + ;; + + *) + echo "Usage: adsl {start|stop|restart|status}" + exit 1 +esac + +exit 0 -- cgit v1.2.1