port lots of init scripts over to rc.common (more to come)
[openwrt/svn-archive/archive.git] / net / rp-pppoe / files / pppoe-client.init
index fb3f4ca3e833e1c4c3db11df47b5d24c50f4d0c5..ba6c7cd72d518d3782c1eab45dc49ae1f02a90e5 100644 (file)
@@ -1,12 +1,11 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
 
-case "$1" in
- start|stop)
-  adsl-$1
-  ;;
- *)
-  echo "usage: $0 {start|stop}"
-  exit 1
-esac
+start() {
+       adsl-start
+}
+
+stop() {
+       adsl-stop
+}
 
-exit $?