autostart.shscript runs at the start of userspace boot. It can be used to run commands before Kodi starts. It does not exist by default, but you can create it using nano.
autostart.shrequire you to "background" and delay the commands, e.g. the following script sleeps for 20 seconds and then runs a
kodi-sendcommand to update the video library.
shutdown.shscript run during the shutdown process. It does not exist by default, but you can create it using nano.
shutdown.shscript should follow the following template to ensure commands are executed during the correct event, i.e. you can run different commands for a
haltevent, or use the
*as a catch-all.