2009-10-04 14:01:17 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2012-09-12 10:09:55 +00:00
|
|
|
|
2009-10-04 14:01:17 +00:00
|
|
|
START=80
|
|
|
|
|
2012-09-12 10:09:55 +00:00
|
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
SERVICE_WRITE_PID=1
|
|
|
|
SERVICE_PID_FILE=/var/run/mountd.pid
|
|
|
|
|
|
|
|
MOUNTD_BIN=/sbin/mountd
|
|
|
|
|
2009-10-04 14:01:17 +00:00
|
|
|
start()
|
|
|
|
{
|
2015-09-14 20:12:21 +00:00
|
|
|
P="$(uci get mountd.mountd.path)"
|
|
|
|
[ -n "$P" -a ! -f "$P" ] && mkdir -p $P
|
|
|
|
|
2012-09-12 10:09:55 +00:00
|
|
|
service_start $MOUNTD_BIN -f
|
2009-10-04 14:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
2012-09-12 10:09:55 +00:00
|
|
|
service_stop $MOUNTD_BIN
|
2009-10-04 14:01:17 +00:00
|
|
|
}
|