[Bugfix][T106][bug-view-112][uci]uci show|grep version is error after fota

Only Configure: NO
Affected branch: master
Affected module: uci
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update:No

Change-Id: Ia2ef90ce90548e5e0b720354799b4a1c4e5f4e98
diff --git a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/zcatlog_config.sh b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/zcatlog_config.sh
index 5c6648f..0d099dd 100755
--- a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/zcatlog_config.sh
+++ b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/zcatlog_config.sh
@@ -1,5 +1,31 @@
 #!/bin/sh
 
+#jb.qi add for uci check start
+check_copy_file() {
+	if [ $# -ne 2 ];then
+		return
+	fi
+	
+	diff $1 $2 > /dev/null
+	if [ $? -ne 0 ]; then
+		echo "cp $1 $2" > /dev/kmsg
+		cp $1 $2
+	fi
+}
+
+check_uci()
+{
+    uci get lynq_uci.lynq_ril > /dev/null
+    if [ $? -ne 0 ]; then
+        echo "$TAG: lynq_uci config cant get" > /dev/kmsg
+        cp /etc/config/lynq_uci /mnt/userdata/config/lynq_uci
+    fi
+}
+mkdir /mnt/userdata/config
+check_uci
+check_copy_file /etc/config/lynq_uci_ro /mnt/userdata/config/lynq_uci_ro
+
+#jb.qi add for uci check end
 ramdump_mode=`nv get ramdump_mode`
 
 if [ -e /proc/sys/ramdump_ap/ramdump_start_addr ]; then
diff --git a/cap/zx297520v3/src/lynq/framework/lynq-sdk-ready/lynq_timer.cpp b/cap/zx297520v3/src/lynq/framework/lynq-sdk-ready/lynq_timer.cpp
index 2b6874b..2c7d1e7 100755
--- a/cap/zx297520v3/src/lynq/framework/lynq-sdk-ready/lynq_timer.cpp
+++ b/cap/zx297520v3/src/lynq/framework/lynq-sdk-ready/lynq_timer.cpp
@@ -635,6 +635,7 @@
     int ret;

 

     ALOGD("start lynq-sdk-ready\n");

+/*

 #ifdef MOBILETEK_TARGET_PLATFORM_T106

     ret = pthread_create(&thid_2,NULL,t106_check_uci,NULL);

 #endif

@@ -647,7 +648,7 @@
         return;

     }

     pthread_detach(thid_2);

-

+*/

     ret = pthread_create(&thid, &a, timer_request_imei, NULL);

     if(ret != 0){

         ALOGD("pthread_create error!!!");