Created a script to download files from a remote server to a local usb hdd attached to the router using rsync. I've added some locking mechanism in the script (creates and deletes xxxx.lck file). When I run this from putty.exe (SSH) it's working fine. But when I try to run this from Tools -> System, I get a read-only error:
/opt/etc/rsync-script/start-rsync-download.sh: line 15: can't create start-rsync-lock: Read-only file system
Is there anything I have to do?