summaryrefslogtreecommitdiff
path: root/package/system/mountd/files/mountd.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/mountd/files/mountd.init')
-rwxr-xr-xpackage/system/mountd/files/mountd.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/mountd/files/mountd.init b/package/system/mountd/files/mountd.init
index c294c50..772bd6e 100755
--- a/package/system/mountd/files/mountd.init
+++ b/package/system/mountd/files/mountd.init
@@ -10,6 +10,9 @@ MOUNTD_BIN=/sbin/mountd
start()
{
+ P="$(uci get mountd.mountd.path)"
+ [ -n "$P" -a ! -f "$P" ] && mkdir -p $P
+
service_start $MOUNTD_BIN -f
}