[yocto] add generic startup file to yocto image

Burton, Ross ross.burton at intel.com
Mon May 23 04:39:42 PDT 2016


On 23 May 2016 at 12:36, Alvaro Martinez Tovar <alvaromartineztovar at yahoo.es
> wrote:

> until now I have followed a "manual" methodology to add script to startup
> on system boot:
> - create sh file
> - made it executable and copy it to /etc/init.d
> - add it with update-rc.d my-startup-file.sh defaults 99 to be executed
> just before login prompt.
> What should I do in order to add a generic my-startup-file.sh to
> /etc/init.d and the corresponding S and K file to rcX.d directories?
> Thank you very much for your help!
>

Write a recipe to instal your script using the update-rc.d class to invoke
update-rc.d on install (
http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#ref-classes-update-rc.d
).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160523/c147c283/attachment.html>


More information about the yocto mailing list