Adding scripts to run at startup


I am just starting with a device from Sierra Wireless (FX-30) running the Legato Linux distribution.

We have not started developing any applications yet but I am just trying to test posting some data to the internet every minute. This is done with a shell script I wrote using curl and a while loop.

By default this script cannot make connections to the internet, it is blocked by the firewall. In order to bypass this another script with the below command is ran

iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Now that my script can start and post data to the internet I wanted to run it in the background and have it start at boot. I wrote another script to


Hi jakebjorkekato,
You have told that you had problem connecting to the internet as it was blocked by firewall and you were able to access after running the iptables rules you have mentioned.

But we are not clear what actually you are looking for !? Your last sentence I wrote another script to looks incomplete, Have you missed out to provide any information by mistake here ?

Muralidhara N.



Do you mean you want to add some command in the init script?
Probably you can modify /etc/init.d/mount_early