vtoyfat=vtoyfat_32
fi
- if echo 1 | ./tool/hexdump > /dev/null; then
+ if echo 1 | hexdump > /dev/null; then
vtdebug "hexdump test ok ..."
else
vtdebug "hexdump test fail ..."
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/nvme[0-9][0-9]*n[0-9]"; then
echo ${DISK}p${2}
+ elif echo $DISK | grep -q "/dev/mmcblk[0-9]"; then
+ echo ${DISK}p${2}
else
echo ${DISK}${2}
fi
PART1_TYPE=$(dd if=$DISK bs=1 count=1 skip=450 status=none | ./tool/hexdump -n1 -e '1/1 "%02X"')
PART2_TYPE=$(dd if=$DISK bs=1 count=1 skip=466 status=none | ./tool/hexdump -n1 -e '1/1 "%02X"')
- if [ "$PART1_TYPE" != "EE" ]; then
- if [ "$PART2_TYPE" != "EF" ]; then
- vtdebug "part2 type is $PART2_TYPE not EF"
- ventoy_false
- return
- fi
- fi
+ # if [ "$PART1_TYPE" != "EE" ]; then
+ # if [ "$PART2_TYPE" != "EF" ]; then
+ # vtdebug "part2 type is $PART2_TYPE not EF"
+ # ventoy_false
+ # return
+ # fi
+ # fi
# PART1_TYPE=$(dd if=$DISK bs=1 count=1 skip=450 status=none | ./tool/hexdump -n1 -e '1/1 "%02X"')
# if [ "$PART1_TYPE" != "07" ]; then