3e8284f710
- Added init scripts for TurboLinux, courtesy of Yasuhiro Sumi. - Made relay.c check packet lengths rigorously; made it throw out Ethernet frame padding on discovery packets. - Completely restructured source file tree. - Much internal restructuring to eliminate a bunch of global variables. - adsl-connect now executes /etc/ppp/adsl-lost whenever connection is dropped or cannot be established. - Split pppoe.c into pppoe.c and discovery.c. - Added relay agent (pppoe-relay). Development of the relay agent was funded by IBM Corporation. - Made adsl-connect script use the "-U" (host-unique) option to better support multiple PPPoE links. - Added support for kernel-mode PPPoE (EXPERIMENTAL, UNSUPPORTED!) - Added "-o" option to PPPoE server; encoded server PID in pppoe-server cookie. Furthermore a startup script for NetBSD 1.5 and newer was added.
29 lines
418 B
Bash
Executable file
29 lines
418 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $NetBSD: pppoe.sh,v 1.1 2001/03/18 18:55:29 tron Exp $
|
|
#
|
|
# PROVIDE: pppoe
|
|
# REQUIRE: ipnat
|
|
|
|
test -f /etc/ppp/pppoe.conf || exit 1
|
|
|
|
case $1 in
|
|
start)
|
|
. /etc/ppp/pppoe.conf
|
|
ifconfig $ETH up
|
|
${PREFIX}/sbin/adsl-start
|
|
;;
|
|
stop)
|
|
${PREFIX}/sbin/adsl-stop
|
|
. /etc/ppp/pppoe.conf
|
|
ifconfig $ETH down
|
|
;;
|
|
restart)
|
|
sh $0 stop
|
|
sleep 5
|
|
sh $0 start
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|