miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / rp-pppoe / scripts / pppoe-init-turbolinux.in
blobd35c801a15afef01065651917b467afe8be854d2
1 #!/bin/sh
3 # pppoe This script starts or stops a PPPoE connection
5 # chkconfig: 2345 99 01
6 # description: Connects to PPPoE provider
8 # LIC: GPL
10 # Copyright (C) 2000 Roaring Penguin Software Inc. This software may
11 # be distributed under the terms of the GNU General Public License, version
12 # 2 or any later version.
14 # Source function library if it exists
15 test -r /etc/rc.d/init.d/functions && . /etc/rc.d/init.d/functions
17 # From AUTOCONF
18 prefix=@prefix@
19 exec_prefix=@exec_prefix@
21 # Paths to programs
22 START=@sbindir@/pppoe-start
23 STOP=@sbindir@/pppoe-stop
24 STATUS=@sbindir@/pppoe-status
25 case "$1" in
26 start)
27 echo -n "Bringing up PPPoE link: "
29 $START
30 if [ $? = 0 ] ; then
31 echo success
32 touch /var/lock/subsys/pppoe
33 else
34 echo failure
38 stop)
39 echo -n "Shutting down PPPoE link: "
41 $STOP > /dev/null 2>&1
42 if [ $? = 0 ] ; then
43 echo success
44 rm -f /var/lock/subsys/pppoe
45 else
46 echo failure
50 restart)
51 $0 stop
52 $0 start
55 status)
56 $STATUS
60 echo "Usage: pppoe {start|stop|restart|status}"
61 exit 1
62 esac
64 exit 0