Annotation of /trunk/rp-pppoe/pppoe.rc
Parent Directory | Revision Log
Revision 80 -
(hide annotations)
(download)
Wed Oct 11 14:17:22 2006 UTC (17 years, 11 months ago) by niro
File size: 720 byte(s)
Wed Oct 11 14:17:22 2006 UTC (17 years, 11 months ago) by niro
File size: 720 byte(s)
fixed typos
1 | niro | 79 | #!/bin/sh |
2 | niro | 80 | # $Header: /root/magellan-cvs/src/rp-pppoe/pppoe.rc,v 1.2 2006-10-11 14:17:22 niro Exp $ |
3 | niro | 79 | |
4 | #%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k | ||
5 | #%start: 21 | ||
6 | #%stop: 81 | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | source /etc/sysconfig/rc | ||
14 | source $rc_functions | ||
15 | |||
16 | case "$1" in | ||
17 | start) | ||
18 | niro | 80 | echo -en ${COLOREDSTAR}"Bringing up pppoe-interface " |
19 | niro | 79 | /usr/sbin/pppoe-start |
20 | evaluate_retval | ||
21 | |||
22 | update_svcstatus $1 | ||
23 | splash svc_started "$(basename $0)" 0 | ||
24 | ;; | ||
25 | |||
26 | stop) | ||
27 | niro | 80 | echo -e ${COLOREDSTAR}"Bringing down pppoe-interface ..." |
28 | niro | 79 | /usr/sbin/pppoe-stop |
29 | evaluate_retval | ||
30 | |||
31 | update_svcstatus $1 | ||
32 | splash svc_stopped "$(basename $0)" 0 | ||
33 | ;; | ||
34 | |||
35 | restart) | ||
36 | $0 stop | ||
37 | sleep 1 | ||
38 | $0 start | ||
39 | ;; | ||
40 | |||
41 | *) | ||
42 | echo "Usage: $0 {start|stop|restart}" | ||
43 | exit 1 | ||
44 | ;; | ||
45 | esac |