Fix emmc mount issue with RG353P with a single microsd.

This commit is contained in:
fewtarius 2022-06-24 18:49:37 -04:00
parent 7e41959b4b
commit a041136ac4
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -705,10 +705,16 @@ mount_games() {
for DEV in $(blkid | awk 'BEGIN {FS=":"}; /ext4/ || /fat/ {print $1}' | sort -r)
do
ROOTDEV=$(echo ${DEV} | sed -e "s#^/.*/##g" -e "s#p[0-9].*\$##g")
if [ -L "/sys/class/block/${ROOTDEV}boot0" ]
then
# Assume this is an android boot device and ignore it.
continue
fi
NULL=$(grep ${DEV} /proc/mounts >/dev/null 2>&1)
if [ ! "$?" = "0" ] && [ -e "${DEV}" ] && [ ! -e "/storage/.please_resize_me" ]
then
mount ${DEV} /storage/roms >/dev/null 2>&1
mount ${DEV} /storage/roms
break
fi
done