What is the best way to have a custom script launch when a Gateway boots up? I'd preferably want it to happen pretty late in the start-up process... at least once all the network interfaces have come up.
Thanks!
Dan
What is the best way to have a custom script launch when a Gateway boots up? I'd preferably want it to happen pretty late in the start-up process... at least once all the network interfaces have come up.
Thanks!
Dan
Hi Daniel,
you can use the following script:
/etc/rc.local
This script will be executed *after* all the other init scripts. You can put your own initialization stuff in here if you don't want to do the full Sys V style init stuff.
Or use a "/etc/rc3.d" start script:
/etc/rc3.d/Sxx_myscript
xx is the position of the start script.
Regards
On Gaia would add an entry to /etc/rc.local. One example use case is from Keld Norman: iPhone Real-time Push notification on SmartEvent.
On Gaia embedded check out sk11818: How to make kernel parameters survive reboot on SMB appliances.
The -Best- method to have GAiA running a script at system boot in my mind is using it's built-in functionality for this: