projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
port lots of init scripts over to rc.common (more to come)
[openwrt/svn-archive/archive.git]
/
net
/
rp-pppoe
/
files
/
pppoe-client.init
diff --git
a/net/rp-pppoe/files/pppoe-client.init
b/net/rp-pppoe/files/pppoe-client.init
index fb3f4ca3e833e1c4c3db11df47b5d24c50f4d0c5..ba6c7cd72d518d3782c1eab45dc49ae1f02a90e5 100644
(file)
--- a/
net/rp-pppoe/files/pppoe-client.init
+++ b/
net/rp-pppoe/files/pppoe-client.init
@@
-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 $?