3 # pppoe This script starts or stops a PPPoE connection
5 # chkconfig: 2345 99 01
6 # description: Connects to PPPoE provider
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
19 exec_prefix
=@exec_prefix@
22 START
=@sbindir@
/pppoe-start
23 STOP
=@sbindir@
/pppoe-stop
24 STATUS
=@sbindir@
/pppoe-status
27 echo -n "Bringing up PPPoE link"
31 touch /var
/lock
/subsys
/pppoe
40 echo -n "Shutting down PPPoE link"
42 $STOP > /dev
/null
2>&1
44 rm -f /var
/lock
/subsys
/pppoe
62 echo "Usage: pppoe {start|stop|restart|status}"