mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45:38 +00:00
19 lines
394 B
Bash
19 lines
394 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
while true; do
|
||
|
rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
|
||
|
./emulationstation "$@"
|
||
|
[ -f /tmp/es-restart ] && continue
|
||
|
if [ -f /tmp/es-sysrestart ]; then
|
||
|
rm -f /tmp/es-sysrestart
|
||
|
sudo reboot
|
||
|
break
|
||
|
fi
|
||
|
if [ -f /tmp/es-shutdown ]; then
|
||
|
rm -f /tmp/es-shutdown
|
||
|
sudo poweroff
|
||
|
break
|
||
|
fi
|
||
|
break
|
||
|
done
|