summaryrefslogtreecommitdiff
path: root/net/rp-pppoe/files/pppoe.sh
blob: c56c534aa8a71e8b4dc1bad509d89279bd296880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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