Search found 1 match

by Malah
Thu Jun 07, 2018 9:14 am
Forum: General Discussion
Topic: Stop/start Kodi by status TV
Replies: 0
Views: 2724

Stop/start Kodi by status TV

Hi I want to maintance the Kodi by TV status. Script for example: #!/bin/bash oldcmd="" while : do cmd=$(/opt/vc/bin/tvservice -n) if [[ "$cmd" == *"GSM-LG_TV"* && "$cmd" != "$oldcmd" ]] then echo starting xbmc $(sudo systemctl start mediacenter) oldcmd=$cmd elif [[ "$cmd" != "$oldcmd" ]] ; then ech...