I"m able to successfully run a docker container and some scripts upon boot up via the use to autostart.sh. But some of my scripts need Kodi to be up and running. Adding sleep in autostart.sh does not help as it delays the loading of Kodi as well.
Since I am troubleshooting some other issues with the scripts and need to restart it manually as well (without system reboot) - I cannot add sleep because then
upon manual restart the sleep will slow me down while testing and troubleshooting.
Is there a way to run a script in Librelec upon boot but after Kodi has loaded ?