I am presently using this script in OpenWrt to run rclone (rclone v1.57.0) from my router:
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export HOME=/root
exec &> /tmp/mount-onedrive.log
START=97
STOP=4
start() {
rclone mkdir /tmp/OneDrive
rclone mount "OneDrive:/Scanned Documents/" /tmp/OneDrive/ --use-mmap --buffer-size 0 --cache-dir /tmp --vfs-cache-mode writes --vfs-cache-max-age 0s --umask 000 --allow-other --daemon
}
stop() {
fusermount -zu /tmp/OneDrive
rclone rmdir /tmp/OneDrive
}
It works fine (just to offer samba share to which scanner can write, to redirect to OneDrive).
Can I be certain that this will only result in writes to /tmp and not anything else? I ask because I don't want to wear out the flash memory on my router.