Merge "[Feature][ZXW-113] add fota Self starting service"
diff --git a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
index 67137b6..4afefba 100755
--- a/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
+++ b/cap/zx297520v3/sources/meta-zxic-custom/recipes-core/images/files/zx297520v3/vehicle_dc_ref/fs/normal/rootfs/etc/init.d/fscheck.sh
@@ -3,6 +3,7 @@
 fscheck -f /etc_ro/fscheck/userdata.ini
 mkdir -p /mnt/oemdata/cache
 mkdir -p /mnt/oemdata/var/log
+mkdir -p /mnt/userdata/ril/network
 if [ ! -L /var/run ]; then
   rm  -fr /var/run
   ln -s  /run /var/run
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-systime/lynq_systime.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-systime/lynq_systime.cpp
index 6b7351b..8eaba2a 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-systime/lynq_systime.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-systime/lynq_systime.cpp
@@ -44,13 +44,13 @@
 #define NTP_STOP_BUF "/etc/init.d/sntp stop"

 #define NTP_START_BUF "/etc/init.d/sntp start"

 #define PGREP_NTP_DARMON "pgrep -x /usr/bin/sntp"

-#define SET_RTC() lynq_set_rtc_time()

+

 #else

 #define NTP_RESTART_BUF "systemctl restart ntpd"

 #define NTP_STOP_BUF "systemctl stop ntpd"

 #define NTP_START_BUF "systemctl start ntpd"

 #define PGREP_NTP_DARMON "pgrep ntpd"

-#define SET_RTC() system("hwclock -w -f /dev/rtc0")

+

 #endif

 

 #ifdef MOBILETEK_TARGET_PLATFORM_T106

@@ -280,9 +280,6 @@
     // set systime

     snprintf(cmd_buf, sizeof(cmd_buf), "date -s %s+%s", date, time);

     system(cmd_buf);

-

-    // set RTC by macrofunction

-    SET_RTC();

     return 0;

 }