From 02466cf5bd2f3b47c82a174f330ad7601ba276bc Mon Sep 17 00:00:00 2001 From: fewtarius Date: Mon, 10 Oct 2022 20:04:55 -0400 Subject: [PATCH] Add a simple wait to ES incase mount_games hasn't completed yet. --- packages/jelos/sources/autostart/common/003-mount_games | 6 +++++- packages/ui/emulationstation/sources/es_settings | 5 +++++ packages/ui/emulationstation/sources/start_es.sh | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/jelos/sources/autostart/common/003-mount_games b/packages/jelos/sources/autostart/common/003-mount_games index 9c524824e..047bef261 100755 --- a/packages/jelos/sources/autostart/common/003-mount_games +++ b/packages/jelos/sources/autostart/common/003-mount_games @@ -9,11 +9,14 @@ UPDATE_ROOT="/storage/.update" MOUNT_GAMES=$(get_setting system.automount) GAMES_DEVICE=$(get_setting system.gamesdevice) +touch /storage/.mounting + if [[ ! "${MOUNT_GAMES}" =~ [0-9] ]] then set_setting system.automount 1 elif [[ "${MOUNT_GAMES}" == "0" ]] then + rm /storage/.mounting exit 0 fi @@ -69,4 +72,5 @@ then else find_games fi - +i +rm /storage/.mounting diff --git a/packages/ui/emulationstation/sources/es_settings b/packages/ui/emulationstation/sources/es_settings index 81c5699d2..9ec98f7fc 100755 --- a/packages/ui/emulationstation/sources/es_settings +++ b/packages/ui/emulationstation/sources/es_settings @@ -9,6 +9,11 @@ set_audio alsa export SDL_AUDIODRIVER=alsa +while [ -e "/storage/.mounting" ] +do + sleep .5 +done + TZ=$(get_setting system.timezone) echo -n "TIMEZONE=${TZ}" > /storage/.cache/timezone echo -n "${TZ}" >/storage/.cache/system_timezone diff --git a/packages/ui/emulationstation/sources/start_es.sh b/packages/ui/emulationstation/sources/start_es.sh index fca77d0d3..0d9a4c65e 100755 --- a/packages/ui/emulationstation/sources/start_es.sh +++ b/packages/ui/emulationstation/sources/start_es.sh @@ -9,6 +9,11 @@ set_audio alsa export SDL_AUDIODRIVER=alsa +while [ -e "/storage/.mounting" ] +do + sleep .5 +done + TZ=$(get_setting system.timezone) echo -n "TIMEZONE=${TZ}" > /storage/.cache/timezone echo -n "${TZ}" >/storage/.cache/system_timezone