Advertisement
Guest User

Untitled

a guest
May 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sudo openvt -c 7 -s -f clear
  4.  
  5. sudo openvt -c 7 -f "$(emulationstation)" &
  6.  
  7. sleep 8
  8.  
  9. sudo service xbmc stop
  10.  
  11. while [ true ]; do
  12. VAR1="$(pidof /opt/retropie/supplementary/emulationstation/emulationstation)"
  13.  
  14. if [ ! "$VAR1" ]; then
  15. sudo openvt -c 7 -s -f clear
  16. killall emulationstation
  17. sudo service xbmc start
  18. echo "Emulation station down. Strating KODI"
  19. exit
  20. else
  21. sleep 2
  22. fi
  23. done
  24. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement