Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement