mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
allow emulationstation.sh to be called from any location (gets basename from $0)
This commit is contained in:
parent
866ea49b7d
commit
23d96b6a56
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
esdir="$(dirname $0)"
|
||||||
while true; do
|
while true; do
|
||||||
rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
|
rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
|
||||||
./emulationstation "$@"
|
"$esdir/emulationstation" "$@"
|
||||||
[ -f /tmp/es-restart ] && continue
|
[ -f /tmp/es-restart ] && continue
|
||||||
if [ -f /tmp/es-sysrestart ]; then
|
if [ -f /tmp/es-sysrestart ]; then
|
||||||
rm -f /tmp/es-sysrestart
|
rm -f /tmp/es-sysrestart
|
||||||
|
|
Loading…
Reference in a new issue