Permalink
Browse files

bootlogo and bgcolor support added

  • Loading branch information...
iTeamFr committed Nov 28, 2010
1 parent b7c3220 commit 9a21b7f76a5acdd34ab5cd39af7ab0dd6a674ee3
Showing with 31 additions and 1 deletion.
  1. +31 −1 utilities/tetheredboot.c
View
@@ -178,7 +178,37 @@ int main(int argc, char* argv[]) {
}
}
-
+ if (bootlogo != NULL) {
+ debug("Uploading %s to device\n", bootlogo);
+ ir_error = irecv_send_file(client, bootlogo, 1);
+ if(ir_error != IRECV_E_SUCCESS) {
+ error("Unable to upload bootlogo\n");
+ debug("%s\n", irecv_strerror(ir_error));
+ return -1;
+ }
+
+ ir_error = irecv_send_command(client, "setpicture 1");
+ if(ir_error != IRECV_E_SUCCESS) {
+ error("Unable to set picture\n");
+ return -1;
+ }
+
+ ir_error = irecv_send_command(client, "bgcolor 0 0 0");
+ if(ir_error != IRECV_E_SUCCESS) {
+ error("Unable to set picture\n");
+ return -1;
+ }
+ }
+
+ if (bgcolor != NULL) {
+ char finalbgcolor[255];
+ sprintf(finalbgcolor, "bgcolor %s", bgcolor);
+ ir_error = irecv_send_command(client, finalbgcolor);
+ if(ir_error != IRECV_E_SUCCESS) {
+ error("Unable set bgcolor\n");
+ return -1;
+ }
+ }
if (kernelcacheFile != NULL) {
debug("Uploading %s to device\n", kernelcacheFile);

0 comments on commit 9a21b7f

Please sign in to comment.