Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. es_bin="/opt/retropie/supplementary/emulationstation/emulationstation"
  4.  
  5. if [[ $(id -u) -eq 0 ]]; then
  6.     echo "emulationstation should not be run as root. If you used 'sudo emulationstation' please run without sudo."
  7.     exit 1
  8. fi
  9.  
  10. if [[ -n "$(pidof X)" ]]; then
  11.     echo "X is running. Please shut down X in order to mitigate problems with loosing keyboard input. For example, logou$
  12.    exit 1
  13. fi
  14.  
  15. #key=""
  16. #while [[ -z "$key" ]]; do
  17.    $es_bin "$@"
  18. #    echo "EmulationStation will restart in 5 seconds. Press a key to exit back to console."
  19. #    IFS= read -s -t 5 -N 1 key </dev/tty
  20. #done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement