Fix emmc mount issue with RG353P with a single microsd.
This commit is contained in:
parent
7e41959b4b
commit
a041136ac4
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue