Fix mmc formatting stuck

This commit is contained in:
Ing 2023-12-30 23:24:37 +08:00
parent c8fa3f0b1b
commit a020395de8

View File

@ -1422,7 +1422,11 @@ function advancedMenu() {
fi fi
( (
for I in ${RESP}; do for I in ${RESP}; do
echo y | mkfs.ext4 -T largefile4 "${I}" if [[ "${I}" = /dev/mmc* ]]; then
echo y | mkdosfs -F32 "${I}"
else
echo y | mkfs.ext4 -T largefile4 "${I}"
fi
done done
) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \ ) 2>&1 | DIALOG --title "$(TEXT "Advanced")" \
--progressbox "$(TEXT "Formatting ...")" 20 100 --progressbox "$(TEXT "Formatting ...")" 20 100