[yocto] Adding custom scripts to home directory and /etc/init.d/*
Anuj Mittal
anuj.mittal at intel.com
Mon Mar 5 16:36:56 PST 2018
On 03/06/2018 05:18 AM, Giordon Stark wrote:
> Hi all,
>
> I am wondering if there's a nice pattern or workflow within Yocto where
> I can add a custom shell script to /etc/init.d for the purposes of
> running it on OS boot (which also requires running update.rc I believe)
You can inherit update-rc.d class and define INITSCRIPT_NAME/PARAMS in
your recipe.
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-classes-update-rc.d
> as well as prepopulating the home directory with some files of my choosing.
>
> If someone could point me in the right direction, that would be great!
>
> Giordon
> --
> Giordon Stark
>
>
More information about the yocto
mailing list