[Initng] How to run a program on reboot
Ismael Luceno
ismael.luceno at gmail.com
Sun Mar 25 01:30:01 CET 2007
Jorge Peixoto de Morais Neto escribió:
> This isn't possible with the current initng, you need to implement
> it inside of initng.
>
> I don't know how to elegantly implement a "reboot hook" in the general
> case. But if I only want to run kexec, it seems a simple matter of
> adding system("kexec -e") in the right place and recompiling. Can you
> tell me what is the "right place"?
>
You should use the kexec system call directly, the file that you need
to edit is src/initng_main.c.
Good luck ;).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://jw.dyndns.org/pipermail/initng/attachments/20070324/60bc1140/attachment.pgp
More information about the Initng
mailing list