![]() |
How to make a script be automatically ran at boot?
Hey, I wrote a simple (bash) script to do some stuff on my N900 that would need to ideally be started at boot, the script takes care of the rest (sleeping for a while, looping, etc), so it would only needed to be started whenever the N900 boots.. but how? I tried to search a bit on the forums but didn't really find anything.
Thanks! |
Re: How to make a script be automatically ran at boot?
Quote:
PHP Code:
|
Re: How to make a script be automatically ran at boot?
Thanks, I'll try that out!
|
Re: How to make a script be automatically ran at boot?
If you just have to run stuff once each startup then place your script in /etc/event.d
If your script stays in ram monitoring things then, write a startup script in /etc/event.d but put the main script in /etc/init.d As epitaph says there are lots of examples in both directories for you to learn from. |
Re: How to make a script be automatically ran at boot?
Quote:
|
Re: How to make a script be automatically ran at boot?
I managed to get it working by using that template epitaph wrote and putting it in event.d, it's a really simple script, 5 lines long, so it doesn't really use much space
|
All times are GMT. The time now is 09:17. |
vBulletin® Version 3.8.8