How to make rclone mount disk on boot restart in Openwrt?

Finally!!! Finally!!!! Is alive!!!!
hahahahahahah!!!!" :crazy_face:
I feel like Dr. Frankenstein, :rofl: :rofl: :rofl:.
Sorry for the schizophrenia, but I'm really happy.
Hello everyone?
I managed to get rclone to mount the virtual disk on boot /restart.
I have a lot to thank, to all of you, and especially to Lynx, from the openwrt forum. Thank you very much. Without you I wouldn't be able to find a solution.
Thank you one more time!
I based it on the Lynx script and it looked like this:

#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org

export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export HOME=/root
exec &> /tmp/mount-Cam1-google-drive.log

START=97
STOP=5

start() {
       
reclone mout /Cam1: /mnt/sda3/Cam1
stop() {
        fusermount -zu /mnt/sda3/Cam1
}

The problem was in an ip conflict that wouldn't let the router connect to googledrive.
What made it difficult to find the problem was the fact that when running the script manually, it worked.
At first I did the tests on a VirtualBox vm, then I put it into production on a TP-Link 1043n router.
So... As we know... Information technology is not an exact science, when we replicate the procedure it fails, :rofl: :rofl: :rofl:.
I did something similar on a Banana-pi R2, but it failed. The script is more like yours though
I had to add a 40 second sleep before the "rclone mount" command. See how it turned out:
Preformatted text

#!/bin/sh /etc/rc.common


# Copyright (C) 2007 OpenWrt.org

export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export HOME=/root

exec &> /tmp/mount-rclone.log

START=99
STOP=4

sleep 40
start(){
       rclone mkdir /tmp/gdrive #--config /root/.config/rclone/
       rclone mount "gdrive:/" /tmp/gdrive/ --use-mmap --buffer-size 0 --cache-dir /tmp --vfs-cache-mode writes --vfs-cache-max-age 0s -- umask 000 --allow-other --daemon #--config /root/.config/rclone/
}

stop(){
       fusermount -zu /tmp/gdrive
       rclone rmdir /tmp/gdrive #--config /root/.config/rclone/
}