[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/etc/init.d/fscheck.sh b/rootfs/etc/init.d/fscheck.sh
new file mode 100755
index 0000000..b5ccf20
--- /dev/null
+++ b/rootfs/etc/init.d/fscheck.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+#cppdemo > /dev/null 2>&1 &
+
+fscheck -f /etc_ro/fscheck/userdata.ini
+
+#q.huang@20230920 add for network start
+mkdir -p /mnt/userdata/ril/network
+#q.huang@20230920 add for network end
+
+
+if [ -d "/etc/selinux" ];then
+  /sbin/restorecon -RF /etc_rw  /mnt/userdata/  /mnt/oemdata/ 
+fi
+
+ab_bootinfo
+if [ $? -eq 1 ]; then
+  /sbin/ubi_mount.sh  /mnt/oem     oem      vol_oem     squashfs
+else
+  /sbin/ubi_mount.sh  /mnt/oem     oem2     vol_oem     squashfs
+fi
+
+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
+  if [ $? -ne 0 ]; then
+    mkdir -p /mnt/oemdata/log
+    mount --bind /mnt/oemdata/log /var/log
+  fi     
+else
+  mkdir -p /mnt/oemdata/log
+  mount --bind /mnt/oemdata/log /var/log
+fi
+#l.yang modify for T106BUG-387 start
+
+