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
[packages] portmap fixes:
[openwrt/svn-archive/archive.git]
/
net
/
portmap
/
files
/
portmap.init
diff --git
a/net/portmap/files/portmap.init
b/net/portmap/files/portmap.init
index 31a3399e93c3a023a5f8a6e5c74bd5bd3ea0fc68..97ee0d706ae4a00e16f01f500f94b560c7976b7b 100644
(file)
--- a/
net/portmap/files/portmap.init
+++ b/
net/portmap/files/portmap.init
@@
-1,16
+1,16
@@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2008 OpenWrt.org
-BIN=portmap
-DEFAULT=/etc/default/$BIN
-[ -f $DEFAULT ] && . $DEFAULT
+START=40
+NAME=portmap
+PROG=/usr/sbin/$NAME
+DEFAULT=/etc/default/$NAME
-case $1 in
- start)
- $BIN $OPTIONS
- ;;
- *)
- echo "usage: $0 start"
- exit 1
-esac
+start() {
+ [ -f $DEFAULT ] && . $DEFAULT
+ start-stop-daemon -q -S -x $PROG -- $OPTIONS
+}
-exit $?
+stop() {
+ start-stop-daemon -q -K -x $PROG -- $OPTIONS
+}