packages/portmap: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29063 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2011-11-13 22:15:53 +00:00
parent 8b65e7cd57
commit 9fcfab1a1e
2 changed files with 5 additions and 10 deletions

View File

@ -1,18 +1,13 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2008 OpenWrt.org
# Copyright (C) 2006-2011 OpenWrt.org
START=19
STOP=19
NAME=portmap
PROG=/usr/sbin/$NAME
DEFAULT=/etc/default/$NAME
start() {
[ -f $DEFAULT ] && . $DEFAULT
start-stop-daemon -q -S -x $PROG -- $OPTIONS
service_start /usr/sbin/portmap
}
stop() {
start-stop-daemon -q -K -x $PROG -- $OPTIONS
service_stop /usr/sbin/portmap
}