Add a simple wait to ES incase mount_games hasn't completed yet.

This commit is contained in:
fewtarius 2022-10-10 20:04:55 -04:00
parent 65f4452796
commit 02466cf5bd
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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