Omnija
Participant
Post count: 155

[quote=95972]
#!/bin/bash

LOG_FILE=$HOME/.kodi/temp/kodi.log

rm $LOG_FILE 2> /dev/null

/usr/lib/kodi/kodi.bin –standalone &

while [[ ! -f $LOG_FILE ]] ; do
sleep 1s
done

while read line ; do
if [[ ${line} =~ “application stopped” ]] ; then
echo “Killing kodi”
break
fi
done < <(tail –pid=$$ -f -n0 $LOG_FILE)

killall kodi.bin

fbset -depth 8 && fbset -depth 16
[/quote]

I’ve been using this one for quite some time now, and it seems to help a lot.