summaryrefslogtreecommitdiffstats
path: root/install.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/install.c b/install.c
index cca940021..c2e1385b0 100644
--- a/install.c
+++ b/install.c
@@ -196,6 +196,9 @@ try_update_binary(const char *path, ZipArchive *zip) {
// arrange to install the contents of <filename> in the
// given partition on reboot.
//
+ // ui_print <string>
+ // display <string> on the screen.
+ //
// - the name of the package zip file.
//
@@ -248,6 +251,13 @@ try_update_binary(const char *path, ZipArchive *zip) {
firmware_filename = strdup(filename);
}
}
+ } else if (strcmp(command, "ui_print") == 0) {
+ char* str = strtok(NULL, "\n");
+ if (str) {
+ ui_print(str);
+ } else {
+ ui_print("\n");
+ }
} else {
LOGE("unknown command [%s]\n", command);
}