packages/net/portmap/files/portmap.init
lars 8aaf048cab [packages] portmap: Stop the portmap daemon, otherwise it will keep a lock file
and prevent unmounting the rootfs on poweroff/reboot.
Thanks Peter Wagner


git-svn-id: svn://svn.openwrt.org/openwrt/packages@19564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-09 00:44:30 +00:00

19 lines
291 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2008 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
}
stop() {
start-stop-daemon -q -K -x $PROG -- $OPTIONS
}