# How to change startlegato.sh in FX30

**URL:** <https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285>\
**Category:** FX30\
**Tags:** faq\
**Created:** [July 25, 2023, 1:29am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285 "2023-07-25T01:29:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![takashi\_shiina](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@takashi\_shiina](https://forum.sierrawireless.com/u/takashi_shiina)\
**Post date:** [July 25, 2023, 1:29am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/1 "2023-07-25T01:29:45Z")

</div>

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#

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 25, 2023, 1:33am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/2 "2023-07-25T01:33:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![takashi\_shiina](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@takashi\_shiina](https://forum.sierrawireless.com/u/takashi_shiina)\
**Post date:** [July 25, 2023, 4:09am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/3 "2023-07-25T04:09:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 25, 2023, 4:36am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/4 "2023-07-25T04:36:13Z")

</div>

I don’t see problem:

```auto

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:~#

```

---

<div class="post-metadata">

**Author:** ![takashi\_shiina](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@takashi\_shiina](https://forum.sierrawireless.com/u/takashi_shiina)\
**Post date:** [July 26, 2023, 12:49am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/5 "2023-07-26T00:49:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 26, 2023, 1:07am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/6 "2023-07-26T01:07:21Z")

</div>

did you try the latest FW?

[https://source.sierrawireless.com/resources/airlink/software\_downloads/fx30-firmware/fx30-firmware-catm/](https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware-catm/)

---

<div class="post-metadata">

**Author:** ![takashi\_shiina](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@takashi\_shiina](https://forum.sierrawireless.com/u/takashi_shiina)\
**Post date:** [July 31, 2023, 2:59am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/7 "2023-07-31T02:59:42Z")

</div>

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?

> **[Upgrade a Device Locally with the Latest Firmware](https://docs.octave.dev/docs/upgrade-a-device-locally-with-the-latest-firmware)**
>
> This page provides instructions to upgrade your Octave device with the latest firmware using your local development PC. Alternatively you can upgrade your device over the air if your device has been set up to communicate with Octave.Windows Host You...

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 31, 2023, 3:07am UTC](https://forum.sierrawireless.com/t/how-to-change-startlegato-sh-in-fx30/30285/8 "2023-07-31T03:07:42Z")

</div>

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:

> **[Invoking shell scripts from Legato app](https://forum.legato.io/t/invoking-shell-scripts-from-legato-app/5575/4)**
>
> I don’t see problem on WP76 FW R13. You can use my hello6.tar.gz. hello6.tar.gz (314.7 KB) root@swi-mdm9x28-wp:~# chmod 777 /tmp/test.sh root@swi-mdm9x28-wp:~# /tmp/test.sh root@swi-mdm9x28-wp:~# ls /tmp/123.txt /tmp/123.txt ...
