fix(deck): Check if micro SD card is mounted before attempting to mount

This commit is contained in:
RJ Trujillo 2023-07-10 19:38:07 -06:00
parent fdd8facb43
commit 1f03d05b97

View File

@ -64,13 +64,14 @@ do_mount()
fi
mount_point=/mnt/sdcard
if [[ ! -d "${mount_point}" ]]; then
mkdir -p "${mount_point}"
/bin/mount "${DEVICE}" "${mount_point}"
if [[ $? -ne 0 ]]; then
echo "Error mounting ${DEVICE} (status = $ret)"
echo "Error mounting ${DEVICE}"
exit 1
fi
fi
# Workaround for for Steam compression bug
for d in "${mount_point}"/steamapps/{downloading,temp} ; do