init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[openwrt/svn-archive/archive.git] / net / portmap / files / portmap.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=40
5 BIN=portmap
6 DEFAULT=/etc/default/$BIN
7
8 start() {
9 [ -f $DEFAULT ] && . $DEFAULT
10 $BIN $OPTIONS
11 }
12
13 stop() {
14 killall $BIN
15 }
16