mirror of
https://github.com/rclone/rclone.git
synced 2025-08-12 23:17:10 +02:00
describe shortcomings
@ -35,11 +35,11 @@ To enable mounting a volume using rclone via an entry in fstab the following hel
|
|||||||
|
|
||||||
# exec rclone
|
# exec rclone
|
||||||
trans="$trans $remote $mountpoint"
|
trans="$trans $remote $mountpoint"
|
||||||
|
# NOTE: do not try "mount --daemon" here, it does not play well with systemd automount, use '&'!
|
||||||
PATH=$PATH rclone mount $trans </dev/null >/dev/null 2>/dev/null &
|
PATH=$PATH rclone mount $trans </dev/null >/dev/null 2>/dev/null &
|
||||||
|
|
||||||
out=`ls -l $dst`
|
# WARNING: this will loop forever if remote is actually empty!
|
||||||
until [ "$out" != 'total 0' ]; do
|
until [ "`ls -l $mountpoint`" != 'total 0' ]; do
|
||||||
out=`ls -l $dst`
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user