From c048696d38bfca20aa33acfb84fc559e302177b7 Mon Sep 17 00:00:00 2001 From: gordan-bobic Date: Mon, 19 Jun 2017 13:23:12 +0000 Subject: [PATCH] Updated rclone fstab mount helper script (markdown) --- rclone-fstab-mount-helper-script.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rclone-fstab-mount-helper-script.md b/rclone-fstab-mount-helper-script.md index 5c4aa8a..fbd8781 100644 --- a/rclone-fstab-mount-helper-script.md +++ b/rclone-fstab-mount-helper-script.md @@ -36,7 +36,13 @@ To enable mounting a volume using rclone via an entry in fstab the following hel # exec rclone trans="$trans $remote $mountpoint" PATH=$PATH rclone mount $trans & - sleep 5 + + out=`ls -l $dst` + until [ "$out" != 'total 0' ]; do + out=`ls -l $dst` + sleep 1 + done + Then in `/etc/fstab` you can add something like: