# Adding scripts to run at startup

**URL:** <https://forum.legato.io/t/adding-scripts-to-run-at-startup/2412>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [April 6, 2017, 4:55pm UTC](https://forum.legato.io/t/adding-scripts-to-run-at-startup/2412 "2017-04-06T16:55:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [August 1, 2018, 1:48am UTC](https://forum.legato.io/t/adding-scripts-to-run-at-startup/2412/7 "2018-08-01T01:48:09Z")

</div>

I just tried on WP76 R9, I found that modifying mount\_early is not working.  
Instead I modify /etc/init.d/startlegato.sh, and I can add my command there.

* * *

case “$1” in  
start)  
echo “Legato start sequence 123”

echo 123 \> /tmp/123.txt

* * *

You can have a try there.

---

_[View the full topic](https://forum.legato.io/t/adding-scripts-to-run-at-startup/2412)._
