source: bootscripts-standard/bootscripts/cblfs/sysconfig/network-devices/services/pppoe@ 94bfdfa

Last change on this file since 94bfdfa was 2167cfe, checked in by William Harrington <kb0iic@…>, 11 years ago

bootscripts are the scripts used for the sysvinit book.

  • Property mode set to 100644
File size: 805 bytes
RevLine 
[2167cfe]1#!/bin/bash
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
14case "$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 ;;
31esac
32
33# End $network_devices/services/pppoe
Note: See TracBrowser for help on using the repository browser.