I tried your script on my Synology NAS. It gave me a few errors but they were easy to fix. I already had rclone configured with a crypt mount working but I wanted mergerfs and your script has been, by FAR, the easiest way to get that working.
I had to copy my rclone.conf to /root/.config/rclone/rclone.conf, replace all instances of /mnt/user/ with a home path (just a preference), and I had to run the script with sudo.
You can see the changes in the attached file. I think if there was a path variable at the top with the others, it would make the script more universal.
I tried your script on my Synology NAS. It gave me a few errors but they were easy to fix. I already had rclone configured with a crypt mount working but I wanted mergerfs and your script has been, by FAR, the easiest way to get that working.
I had to copy my rclone.conf to /root/.config/rclone/rclone.conf, replace all instances of /mnt/user/ with a home path (just a preference), and I had to run the script with sudo.
You can see the changes in the attached file. I think if there was a path variable at the top with the others, it would make the script more universal.
Thanks for developing this, helped me out a lot!
unraid_rclone_mount.sh.txt