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.
13 # Modifed to work with SuSE 6.4 linux by Gary Cameron.
15 # Source function library.
16 #. /etc/rc.d/init.d/functions # For red hat?
17 .
/etc
/rc.config
# For SuSE, enables setting from /etc/rc.config
24 exec_prefix
=@exec_prefix@
27 START
=@sbindir@
/pppoe-start
28 STOP
=@sbindir@
/pppoe-stop
29 STATUS
=@sbindir@
/pppoe-status
31 test "$PPPoE_START" = "yes" ||
exit 0
33 # The echo return value for success (defined in /etc/rc.config).
37 echo -n "Bringing up PPPoE link"
38 $START > /dev
/null
2>&1 ||
return=$rc_failed
43 echo -n "Shutting down PPPoE link"
44 $STOP > /dev
/null
2>&1 ||
return=$rc_failed
50 echo "Waiting" $restart_time "seconds for the host to reset itself"
51 sleep $restart_time #Note: Need time for host to reset itself
60 echo "Usage: pppoe {start|stop|restart|status}"