[Feature][YUKUAI_patch]add 18.02 code
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I7f71153004f10fc0ea5adfa083866aaeeb1053ac
diff --git a/rootfs/sbin/mount_ext4.sh b/rootfs/sbin/mount_ext4.sh
new file mode 100755
index 0000000..6cb1dc8
--- /dev/null
+++ b/rootfs/sbin/mount_ext4.sh
@@ -0,0 +1,19 @@
+#!/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
+