| #!/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 |
| |
| |