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