blob: b5ccf2067cca16869f20485538687f69ab06b838 [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/bin/sh
2
3#cppdemo > /dev/null 2>&1 &
4
5fscheck -f /etc_ro/fscheck/userdata.ini
6
7#q.huang@20230920 add for network start
8mkdir -p /mnt/userdata/ril/network
9#q.huang@20230920 add for network end
10
11
12if [ -d "/etc/selinux" ];then
13 /sbin/restorecon -RF /etc_rw /mnt/userdata/ /mnt/oemdata/
14fi
15
16ab_bootinfo
17if [ $? -eq 1 ]; then
18 /sbin/ubi_mount.sh /mnt/oem oem vol_oem squashfs
19else
20 /sbin/ubi_mount.sh /mnt/oem oem2 vol_oem squashfs
21fi
22
23if [ $? -ne 0 ]; then
24 flags_tool_static --switch
25 reboot
26fi
27
28#l.yang modify for T106BUG-387 start
29if [ -e /dev/mmcblk1p1 ]; then
30 mount -t ext4 /dev/mmcblk1p1 /var/log
31 if [ $? -ne 0 ]; then
32 mkdir -p /mnt/oemdata/log
33 mount --bind /mnt/oemdata/log /var/log
34 fi
35else
36 mkdir -p /mnt/oemdata/log
37 mount --bind /mnt/oemdata/log /var/log
38fi
39#l.yang modify for T106BUG-387 start
40
41