Created
May 29, 2016 07:37
-
-
Save satanasov/cd1fd212a52901db144d6375f9af9196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo openvt -c 7 -s -f clear | |
sudo openvt -c 7 -f "$(emulationstation)" & | |
sleep 8 | |
sudo service xbmc stop | |
while [ true ]; do | |
VAR1="$(pidof /opt/retropie/supplementary/emulationstation/emulationstation)" | |
if [ ! "$VAR1" ]; then | |
sudo openvt -c 7 -s -f clear | |
killall emulationstation | |
sudo service xbmc start | |
echo "Emulation station down. Strating KODI" | |
exit | |
else | |
sleep 2 | |
fi | |
done | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment