On 23 May 2016 at 12:36, Alvaro Martinez Tovar <alvaromartinezto...@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
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to