|
2011-03-23
, 23:16
|
Banned |
Posts: 358 |
Thanked: 160 times |
Joined on Dec 2010
|
#2
|
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!
start on started rcS-late
script
foobar
more foobar
end script
|
2011-03-23
, 23:17
|
|
Posts: 162 |
Thanked: 64 times |
Joined on Mar 2011
|
#3
|
|
2011-03-23
, 23:47
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#4
|
The Following User Says Thank You to JonWW For This Useful Post: | ||
|
2011-03-24
, 00:01
|
Banned |
Posts: 358 |
Thanked: 160 times |
Joined on Dec 2010
|
#5
|
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.
|
2011-03-24
, 00:49
|
|
Posts: 162 |
Thanked: 64 times |
Joined on Mar 2011
|
#6
|
Thanks!