Add return code when reboot failed 90/242990/1 accepted/tizen/unified/20200909.155616 submit/tizen/20200907.025654
authorJeon Sang-Heon <sh95.jeon@samsung.com>
Wed, 2 Sep 2020 17:51:48 +0000 (17:51 +0000)
committerJeon Sang-Heon <sh95.jeon@samsung.com>
Wed, 2 Sep 2020 17:51:48 +0000 (17:51 +0000)
- With local update, trigger script will be executed with system_fw
- So /sbin/reboot will be failed
- If reboot fota failed, return 100

Change-Id: I93ad6d25aa9d63a94d3ced4dc1428ba2a572623b
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
scripts/upgrade-trigger.sh

index d53363c..1e7c70b 100644 (file)
@@ -133,3 +133,8 @@ sync
 # go to fota mode
 echo "Go TOTA update..."
 /sbin/reboot fota
+
+if [ $? -ne 0 ]; then
+       echo "Failed to reboot fota"
+       exit 100
+fi