projects
/
platform
/
core
/
system
/
tota-ua.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef3ab49
)
Add return code when reboot failed
90/242990/1
accepted/tizen/unified/20200909.155616
submit/tizen/20200907.025654
author
Jeon Sang-Heon
<sh95.jeon@samsung.com>
Wed, 2 Sep 2020 17:51:48 +0000
(17:51 +0000)
committer
Jeon 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
patch
|
blob
|
history
diff --git
a/scripts/upgrade-trigger.sh
b/scripts/upgrade-trigger.sh
index
d53363c
..
1e7c70b
100644
(file)
--- a/
scripts/upgrade-trigger.sh
+++ b/
scripts/upgrade-trigger.sh
@@
-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