On Thu, 20 Jan 2011, Steve M wrote:
> I have a small C program that starts flashing LEDs on a 7350. I'd like
> this to start as soon after boot as possible. I boot to SD. I tried
> adding it in linuxrc-sdboot but that didn't work (could have been the
> wrong place). I can add it to /etc/init.d (rc2.d) with a low number, but
> that's later than we'd like.
>
> Does anyone know if or how this can be started earlier?
What script does init start? It should be in the /etc/inittab file.
Stick the command in that script at the beginning. However beware,
the program must act as a daemon. There is a function provided to help do
this, see
http://linux.die.net/man/3/daemon
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|