#!/bin/sh
. /adm/.include

showinfo "PPPoE" "$1"
case "$1" in
    "start")
	quiet ifconfig $INET_IF 0.0.0.0 mtu 1500
	/adm/daemons/pppoe/.doconfig $1
	quiet pppd pty "pppoe -I $INET_IF -m 1452" &
	;;
    "stop")
	quiet killall pppd
	/adm/daemons/pppoe/.doconfig $1
	quiet ifconfig $INET_IF down
	;;
    "restart")
	eval $0 stop
	eval $0 start
	;;
esac

return 0
