blob: 6cb1dc8ac0a9245f9cb862923b39eaff12fdbe09 [file] [log] [blame]
#!/bin/sh
if [ ! -b /dev/mmcblk1p2 ]; then
fdisk_emmc.sh
mkfs.ext4 /dev/mmcblk1p3
fi
#mount -o remount,rw /
#mkdir -p /mnt/emmc2
#mkdir -p /mnt/emmc3
#mount -o remount,ro /
mount -t ext4 -o async /dev/mmcblk1p3 /mnt/emmc2
if [ $? -ne 0 ]; then
echo "ext4 mmcblk1p3 mount fail $? !"
mkfs.ext4 /dev/mmcblk1p3
mount -t ext4 /dev/mmcblk1p3 /mnt/emmc2
fi