How to change startlegato.sh in FX30

To run shell script by automatically, I would like to change /etc/int.d/startlegato.sh.
But I cannot change startlegato.sh because I saw the following error message.
Please advise how to run shell script by automatically or how to change startlegato.sh?

root@fx30:/etc/init.d# ls -l startlegato.sh
-rwxr-xr-x 1 root root 1278 Apr 5 2011 startlegato.sh
root@fx30:/etc/init.d# chmod 777 Startlegato.sh
chmod: Startlegato.sh: No such file or directory
root@fx30:/etc/init.d# chmod 777 startlegato.sh
chmod: startlegato.sh: Read-only file system
root@fx30:/etc/init.d# sudo chmod 777 startlegato.sh
-sh: sudo: not found
root@fx30:/etc/init.d#

you can use “vi” tool to change text files
e.g.
vi /etc/init.d/startlegato.sh

Of course you need to study how to use “vi” tool

Yes, I change startlegato.sh file using “vi” tool.
But I cannot overwrite startlegato.sh file by ”:w” and “:wq” command because this file is Read only now.
Please advise how to save it.

I don’t see problem:


root@fx30:~# ls -l /etc/init.d/startlegato.sh
-rwxr-xr-x    1 root     root          1196 Jan  6  1980 /etc/init.d/startlegato.sh
root@fx30:~# chmod 777 /etc/init.d/startlegato.sh
root@fx30:~# ls -l /etc/init.d/startlegato.sh
-rwxrwxrwx    1 root     root          1196 Jan  6  1980 /etc/init.d/startlegato.sh
root@fx30:~#

Thanks.
I’m using FX30 SKU:1104665.
Do SWI set read only file to this SKU? Please check it.

did you try the latest FW?

https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware-catm/

Thanks. I confirmed to change startlegato.sh when I used your URL FW.
When I used the following URL FW, I cannot change startlegato.sh. Is it Sierra Wireless specification for Octave?

you can run an auto-start legato application to run a script during boot up, in this case, you don’t need to modify startlegato.sh: