Last change
on this file since 47edfd4 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago |
Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.
|
-
Property mode
set to
100644
|
File size:
805 bytes
|
Rev | Line | |
---|
[7df280d] | 1 | #!/bin/bash
|
---|
[7125722] | 2 | # Begin $network_devices/services/pppoe
|
---|
| 3 |
|
---|
| 4 | # Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
|
---|
| 5 | # Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
|
---|
| 6 | # Adapted for pppoe by DJ Lucas <dj@lucasit.com>
|
---|
| 7 |
|
---|
| 8 | #$LastChangedBy: igor $
|
---|
| 9 | #$Date: 2005-09-10 08:37:55 -0500 (Sat, 10 Sep 2005) $
|
---|
| 10 |
|
---|
| 11 | . /etc/sysconfig/rc
|
---|
| 12 | . $rc_functions
|
---|
| 13 |
|
---|
| 14 | case "$2" in
|
---|
| 15 | up)
|
---|
| 16 | boot_mesg "Bringing up the PPPoE interface..."
|
---|
| 17 | /usr/sbin/pppoe-start
|
---|
| 18 | evaluate_retval
|
---|
| 19 | ;;
|
---|
| 20 |
|
---|
| 21 | down)
|
---|
| 22 | boot_mesg "Bringing down the PPPoE interface..."
|
---|
| 23 | /usr/sbin/pppoe-stop
|
---|
| 24 | evaluate_retval
|
---|
| 25 | ;;
|
---|
| 26 |
|
---|
| 27 | *)
|
---|
| 28 | echo "Usage: $0 {up|down}"
|
---|
| 29 | exit 1
|
---|
| 30 | ;;
|
---|
| 31 | esac
|
---|
| 32 |
|
---|
| 33 | # End $network_devices/services/pppoe
|
---|
Note:
See
TracBrowser
for help on using the repository browser.