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
START/STOP values must be specified in the init script
[openwrt/svn-archive/archive.git]
/
net
/
rp-pppoe
/
files
/
pppoe-server.init
diff --git
a/net/rp-pppoe/files/pppoe-server.init
b/net/rp-pppoe/files/pppoe-server.init
index 2768895de0f205e1931cc01e46151160deef4bc2..16d8a172b83d1ae2cc0eaa70fb6d13135456aff6 100644
(file)
--- a/
net/rp-pppoe/files/pppoe-server.init
+++ b/
net/rp-pppoe/files/pppoe-server.init
@@
-1,15
+1,14
@@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+START=50
DEFAULT=/etc/default/pppoe-server
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
+}