Reduce portmap priority, so that nfs shares specified in fstab can be mouted without...
[openwrt/svn-archive/archive.git] / net / portmap / files / portmap.init
index 3bbfb573f8c2239b48fd74d7f66fb52dd8613be5..c3f44be6ed93190118460a83f3ca26e469db74ff 100644 (file)
@@ -1,16 +1,16 @@
 #!/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
 }
-