aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'install.c')
-rw-r--r--install.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/install.c b/install.c
index cca94002..c2e1385b 100644
--- a/install.c
+++ b/install.c
@@ -196,6 +196,9 @@ try_update_binary(const char *path, ZipArchive *zip) {
196 // arrange to install the contents of <filename> in the 196 // arrange to install the contents of <filename> in the
197 // given partition on reboot. 197 // given partition on reboot.
198 // 198 //
199 // ui_print <string>
200 // display <string> on the screen.
201 //
199 // - the name of the package zip file. 202 // - the name of the package zip file.
200 // 203 //
201 204
@@ -248,6 +251,13 @@ try_update_binary(const char *path, ZipArchive *zip) {
248 firmware_filename = strdup(filename); 251 firmware_filename = strdup(filename);
249 } 252 }
250 } 253 }
254 } else if (strcmp(command, "ui_print") == 0) {
255 char* str = strtok(NULL, "\n");
256 if (str) {
257 ui_print(str);
258 } else {
259 ui_print("\n");
260 }
251 } else { 261 } else {
252 LOGE("unknown command [%s]\n", command); 262 LOGE("unknown command [%s]\n", command);
253 } 263 }