projects
/
platform
/
core
/
system
/
system-rw-update.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add critical log where upgrade status is changing
[platform/core/system/system-rw-update.git]
/
upgrade
/
rw-update-macro.inc
diff --git
a/upgrade/rw-update-macro.inc
b/upgrade/rw-update-macro.inc
index
3ad1365
..
5ed8aea
100644
(file)
--- a/
upgrade/rw-update-macro.inc
+++ b/
upgrade/rw-update-macro.inc
@@
-27,6
+27,16
@@
NOTIFY()
echo -e "${COLOR_NOTIFY}${LOG_TEXT}${COLOR_RESET}"
}
+CRITICAL_LOG()
+{
+ LOG="[$SCRIPT_NAME]$1"
+ dlogsend -k "$LOG"
+ if [ "$2" != "" ]; then
+ echo "$LOG" >> "$2"
+ fi
+ echo "$LOG"
+}
+
# Convert version to 4 digits
convert_version() {
i=0