#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2008 OpenWrt.org
-START=40
-BIN=portmap
-DEFAULT=/etc/default/$BIN
+START=19
+NAME=portmap
+PROG=/usr/sbin/$NAME
+DEFAULT=/etc/default/$NAME
start() {
[ -f $DEFAULT ] && . $DEFAULT
- $BIN $OPTIONS
+ start-stop-daemon -q -S -x $PROG -- $OPTIONS
}
stop() {
- killall $BIN
+ start-stop-daemon -q -K -x $PROG -- $OPTIONS
}
-