I have a Raspberry B+
I would like know if is possible turn on (execute) kodi when I connect the HDMI wire.
Code: Select all
Raspbian GNU/Linux 8 Linux raspberrypi 4.4.21+ #911 Thu Sep 15 14:17:52 BST 2016 armv6l GNU/Linux
I tried make a script to change the "ENABLE" paramet in /etc/defualt/kodi when the raspberry is boot but I have not got it.
Using tvservice -M, I can know when the wire is connect/disconnect to Raspberry but i cant execute kodi with this.
My intention is:
Plug the USB in raspberry to supply
IF hdmi wire is connected -> execute KODI
ELSE -> execute rtorrent.
Thanks in advance.