John Crispin b52b1fc3a3 mountd: move code to a git repo
Signed-off-by: John Crispin <blogic@openwrt.org>

Backport of r46935

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-10-02 10:48:48 +00:00

23 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
}