Merge "[Bugfix][T106BUG-548] Modify the fscheck.sh script to adjust the order of mount and reboot"
diff --git a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
index 73e88e9..568d77a 100755
--- a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
+++ b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
@@ -20,17 +20,18 @@
   /sbin/ubi_mount.sh  /mnt/oem     oem2     vol_oem     squashfs
 fi
 
-#l.yang modify for T106BUG-387 start 
-if [ -e /dev/mmcblk1p1 ]; then
-  mount -t ext4 /dev/mmcblk1p1 /var/log
-else
-  mkdir	-p /mnt/oemdata/log
-  mount  /mnt/oemdata/log /var/log
-fi
-#l.yang modify for T106BUG-387 start
-
 if [ $? -ne 0 ]; then
   flags_tool_static --switch
   reboot
 fi
 
+#l.yang modify for T106BUG-387 start
+if [ -e /dev/mmcblk1p1 ]; then
+  mount -t ext4 /dev/mmcblk1p1 /var/log
+else
+  mkdir -p /mnt/oemdata/log
+  mount  /mnt/oemdata/log /var/log
+fi
+#l.yang modify for T106BUG-387 start
+
+