# Init scripts executed at startup

**URL:** <https://forum.legato.io/t/init-scripts-executed-at-startup/6191>\
**Category:** Uncategorized\
**Created:** [April 29, 2022, 2:32pm UTC](https://forum.legato.io/t/init-scripts-executed-at-startup/6191 "2022-04-29T14:32:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 29, 2022, 2:49pm UTC](https://forum.legato.io/t/init-scripts-executed-at-startup/6191/2 "2022-04-29T14:49:42Z")

</div>

You can run an unsandboxed legato app to call your script by system() api during boot up

> [@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](https://forum.legato.io/uploads/short-url/czj2K4NaAp4M02tLAjqZGY8p95w.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 root@swi-mdm9x28-wp:~# cat /tmp/123.txt 123 root@swi-mdm9x28-wp:~# rm /tmp/123.txt root@swi-mdm9x28-wp:~# ls /tmp/ hello6.wp76xx.update legato test.sh hosts pkgdwl thermal\_engi\_ipc ld.so.cache psm\_socket …

---

_[View the full topic](https://forum.legato.io/t/init-scripts-executed-at-startup/6191)._
