Sanity Check - writing to /tmp only to avoid flash writes

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.

That looks right to me albeit I'm sad you didn't use the help template as an angel didn't get their wings.

Many thanks indeed @Animosity022, and sorry about that.

For anyone else wondering about this, please also see this OpenWrt thread, which includes ways to verify no flash writes:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.