#!/bin/sh
sudo /bin/systemctl start kodi-shell@${USER}.service
vt=$(sudo /bin/fgconsole)
sudo /bin/chvt 8
kodi "$@"
sudo /bin/chvt $vt
sudo /bin/systemctl stop kodi-shell@${USER}.service
