xf.li | 8611891 | 2025-03-19 20:07:27 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | if [ ! -b /dev/mmcblk1p2 ]; then | ||||
4 | fdisk_emmc.sh | ||||
5 | mkfs.ext4 /dev/mmcblk1p3 | ||||
6 | fi | ||||
7 | |||||
8 | #mount -o remount,rw / | ||||
9 | #mkdir -p /mnt/emmc2 | ||||
10 | #mkdir -p /mnt/emmc3 | ||||
11 | #mount -o remount,ro / | ||||
12 | |||||
13 | mount -t ext4 -o async /dev/mmcblk1p3 /mnt/emmc2 | ||||
14 | if [ $? -ne 0 ]; then | ||||
15 | echo "ext4 mmcblk1p3 mount fail $? !" | ||||
16 | mkfs.ext4 /dev/mmcblk1p3 | ||||
17 | mount -t ext4 /dev/mmcblk1p3 /mnt/emmc2 | ||||
18 | fi | ||||
19 |