summaryrefslogtreecommitdiff
path: root/package/system/mountd/files/mountd.init
blob: 772bd6ed5afa36aac2205dc140662658cf6f9146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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
}