-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+START=50
DEFAULT=/etc/default/pppoe-server
-[ -f $DEFAULT ] && . $DEFAULT
-case $1 in
- start)
- pppoe-server $OPTIONS
- ;;
- *)
- echo "usage: $0 (start)"
- exit 1
-esac
+start() {
+ [ -f $DEFAULT ] && . $DEFAULT
+ pppoe-server $OPTIONS
+}
-exit $?
+stop() {
+ killall pppoe-server
+}