summaryrefslogtreecommitdiff
path: root/net/rp-pppoe/files/pppoe.sh
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-03-18 18:55:28 +0000
committertron <tron@pkgsrc.org>2001-03-18 18:55:28 +0000
commit3e8284f71079109ee381484b3c4bbc9399ceb6f3 (patch)
tree3ac0b90a102947e75cefbe8f61efa8d92f22426c /net/rp-pppoe/files/pppoe.sh
parentb2868a2d7b10e5ef221f3764d7b2539841012305 (diff)
downloadpkgsrc-3e8284f71079109ee381484b3c4bbc9399ceb6f3.tar.gz
Update "rp-pppoe" package to version 2.8. Changes since version 2.6:
- 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.
Diffstat (limited to 'net/rp-pppoe/files/pppoe.sh')
-rwxr-xr-xnet/rp-pppoe/files/pppoe.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/rp-pppoe/files/pppoe.sh b/net/rp-pppoe/files/pppoe.sh
new file mode 100755
index 00000000000..c56c534aa8a
--- /dev/null
+++ b/net/rp-pppoe/files/pppoe.sh
@@ -0,0 +1,29 @@
+#!/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