openwrtv4/package/system/mountd/files/mountd.init
John Crispin bef03edb7a mountd: move code to a git repo
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46935
2015-09-14 20:12:21 +00:00

22 lines
296 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=80
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
SERVICE_PID_FILE=/var/run/mountd.pid
MOUNTD_BIN=/sbin/mountd
start()
{
P="$(uci get mountd.mountd.path)"
[ -n "$P" -a ! -f "$P" ] && mkdir -p $P
service_start $MOUNTD_BIN -f
}
stop()
{
service_stop $MOUNTD_BIN
}