Squashed 'LYNQ_PUBLIC/' changes from f3dd8cbdf..8df367156

8df367156 [Feature][ZK-92] ftp gpslog to soc with syslog

git-subtree-dir: LYNQ_PUBLIC
git-subtree-split: 8df367156ab9996411592c5984d00ebff7489fd7

Change-Id: Id3027f905915b311b5358152637775b4f4425475
diff --git a/IC_src/mtk/packages/apps/lynq-log-transfer/lynq_inner_log_transfer.sh b/IC_src/mtk/packages/apps/lynq-log-transfer/lynq_inner_log_transfer.sh
index 189ab5c..8268330 100755
--- a/IC_src/mtk/packages/apps/lynq-log-transfer/lynq_inner_log_transfer.sh
+++ b/IC_src/mtk/packages/apps/lynq-log-transfer/lynq_inner_log_transfer.sh
@@ -227,7 +227,8 @@
             if [ $i -eq 0 ]; then              
                 rm -rf $SYS_LOG_PATH$log_prefix* 
                 #gpslog transfer to soc begin@cz.li,20240314
-                rm -rf ${GPS_LOG_PATH}     
+                #no need rm GPS_LOG_PATH and GPS_COF_PATH, because the GPS process cannot dynamically stop/start log output
+                #rm -rf ${GPS_LOG_PATH}     
                 #gpslog transfer to soc end@cz.li,20240314            
             elif [ $i -eq 1 ]; then
                 echo 7 | emdlogger_ctrl        
@@ -786,11 +787,11 @@
         exit_process $((ERROR_IS_IN_TRANSFER_LOG+${index}*5+2 ))
     fi          
     #gpslog transfer to soc begin@cz.li,20240314
-    if [ $index -eq 0 ]; then
-        #Because the GPS process cannot dynamically stop log output,${GPS_LOG_PATH} needs to be deleted in order to exit the log
-        rm -rf ${GPS_LOG_PATH}
+    #no need rm GPS_LOG_PATH and GPS_COF_PATH, because the GPS process cannot dynamically stop/start log output
+    #if [ $index -eq 0 ]; then
+        #rm -rf ${GPS_LOG_PATH}
     #gpslog transfer to soc end@cz.li,20240314
-    elif [ $index -eq 1 ]; then
+    if [ $index -eq 1 ]; then
         echo 7 | emdlogger_ctrl
     elif [ $index -eq 2 ]; then
         show_relative_tag