# Autorun shell script at startup

**URL:** <https://www.wago.community/t/autorun-shell-script-at-startup/2371>\
**Category:** Hardware and Linux\
**Tags:** linux\
**Created:** [October 21, 2025, 11:54am UTC](https://www.wago.community/t/autorun-shell-script-at-startup/2371 "2025-10-21T11:54:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Simon](https://www.wago.community/u/Simon)\
**Post date:** [October 21, 2025, 11:54am UTC](https://www.wago.community/t/autorun-shell-script-at-startup/2371/1 "2025-10-21T11:54:53Z")

</div>

Hey, is there a possibility to run a shell script at system boot. (preferably without triggering this from codesys runtime)

This would be a PFC with FW~28.

---

<div class="post-metadata">

**Author:** ![RobPaq](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RobPaq](https://www.wago.community/u/RobPaq)\
**Post date:** [October 21, 2025, 12:09pm UTC](https://www.wago.community/t/autorun-shell-script-at-startup/2371/2 "2025-10-21T12:09:38Z")

</div>

Hello Simon,

There is in the following a description on how to do it for the wpa\_supplicant for 802.1x.

See the page 116, chapter 7.2.3

> **[WAGO | 15739](https://www.wago.com/global/d/15739#versions)**

Hope it helps,

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [October 21, 2025, 12:20pm UTC](https://www.wago.community/t/autorun-shell-script-at-startup/2371/3 "2025-10-21T12:20:57Z")

</div>

Place your script in /etc/init.d  
Then create a symlink in /etc/rc.d

`ln -s /etc/init.d/myscript /etc/init.d/S99_myscript`

The number in the symlink will define in which order the script will be called (for instance before or after the runtime…)
