pkgsrc/net/rp-pppoe/files/pppoe.sh
bad c097ce83bb Call pppoe-{start,stop} instead of adsl-{start,stop} from pppoe.sh.
The latter have been replace by the former.
Bump PKGREVISION.
2007-09-29 21:46:33 +00:00

30 lines
456 B
Bash
Executable file

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: pppoe.sh,v 1.4 2007/09/29 21:46:33 bad Exp $
#
# PROVIDE: pppoe
# REQUIRE: ipnat
test -f /etc/ppp/pppoe.conf || exit 1
CONFIG=/etc/ppp/pppoe.conf
case $1 in
start)
. /etc/ppp/pppoe.conf
ifconfig $ETH up
@PREFIX@/sbin/pppoe-start
;;
stop)
@PREFIX@/sbin/pppoe-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