Modify log function to always return 0 29/280029/1
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 22 Aug 2022 10:16:15 +0000 (19:16 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 22 Aug 2022 10:30:18 +0000 (10:30 +0000)
The echo command returns 1 if the UART is turned off.
The last statement of the log function is echo, so it returns 1 if the
UART was turned off.
Because of the above, fota mode booting failed when the UART was turned off.

Change-Id: I9286ae4c54415a6385741454c3d66bd42689d65d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
(cherry picked from commit 0811572586cadac99ae287a46f470690fbe5ef88)

scripts/fota-init.sh
scripts/progress_restart.sh

index e8286857ab4a699f83b2582010d6c3d69e02d4bb..8405bcc8e346e817e9e319b025d8a3e7be252c4e 100755 (executable)
@@ -61,6 +61,8 @@ log() {
                echo "$LOG" >> "$2"
        fi
        echo "$LOG"
+
+       return 0
 }
 
 #------------------------------------------------
index bbea9e2c4ca8ee88940bc3d97d87f2bcf579df3b..68395968777695781af7357d64401ff41aef799b 100755 (executable)
@@ -24,6 +24,8 @@ function log {
         echo "$LOG" >> "$2"
     fi
     echo "$LOG"
+
+    return 0
 }
 
 function info {