mountd: move code to a git repo
[openwrt/staging/wigyori.git] / package / system / mountd / files / mountd.init
index c294c50f5c8aefaca7b8b81a244875e0ca85e41c..772bd6ed5afa36aac2205dc140662658cf6f9146 100755 (executable)
@@ -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
 }