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: