Saturday, 29 November 2014

Executing commands/ scripts while booting

Today really quick note... but useful...

When you want to execute command while booting of your HTPC (before Kodi starts) you need to create (if it doesn't exist yet) file autostart.sh in .config directory

echo "#!/bin/bash" > /storage/.config/autostart.sh 
and make sure its executable

chmod +x /storage/.config/autostart.sh



Now anything you put there in the file will be executed as we wanted.

No comments:

Post a Comment