Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- es_bin="/opt/retropie/supplementary/emulationstation/emulationstation"
- if [[ $(id -u) -eq 0 ]]; then
- echo "emulationstation should not be run as root. If you used 'sudo emulationstation' please run without sudo."
- exit 1
- fi
- if [[ -n "$(pidof X)" ]]; then
- echo "X is running. Please shut down X in order to mitigate problems with loosing keyboard input. For example, logou$
- exit 1
- fi
- #key=""
- #while [[ -z "$key" ]]; do
- $es_bin "$@"
- # echo "EmulationStation will restart in 5 seconds. Press a key to exit back to console."
- # IFS= read -s -t 5 -N 1 key </dev/tty
- #done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement