START/STOP values must be specified in the init script
[openwrt/svn-archive/archive.git] / net / rp-pppoe / files / pppoe-server.init
index 2768895de0f205e1931cc01e46151160deef4bc2..16d8a172b83d1ae2cc0eaa70fb6d13135456aff6 100644 (file)
@@ -1,15 +1,14 @@
-#!/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
+}