[packages] portmap fixes:
[openwrt/svn-archive/archive.git] / net / portmap / files / portmap.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2008 OpenWrt.org
3
4 START=40
5 NAME=portmap
6 PROG=/usr/sbin/$NAME
7 DEFAULT=/etc/default/$NAME
8
9 start() {
10 [ -f $DEFAULT ] && . $DEFAULT
11 start-stop-daemon -q -S -x $PROG -- $OPTIONS
12 }
13
14 stop() {
15 start-stop-daemon -q -K -x $PROG -- $OPTIONS
16 }