2021-01-30 13:58:16 +00:00
|
|
|
--- a/cmd/bootmenu.c
|
|
|
|
+++ b/cmd/bootmenu.c
|
2023-04-11 23:21:22 +00:00
|
|
|
@@ -452,7 +452,11 @@ static void menu_display_statusline(stru
|
2021-01-30 13:58:16 +00:00
|
|
|
printf(ANSI_CURSOR_POSITION, 1, 1);
|
|
|
|
puts(ANSI_CLEAR_LINE);
|
2022-07-11 10:02:49 +00:00
|
|
|
printf(ANSI_CURSOR_POSITION, 2, 3);
|
|
|
|
- puts("*** U-Boot Boot Menu ***");
|
2021-01-30 13:58:16 +00:00
|
|
|
+ if (menu->mtitle)
|
|
|
|
+ puts(menu->mtitle);
|
|
|
|
+ else
|
|
|
|
+ puts(" *** U-Boot Boot Menu ***");
|
|
|
|
+
|
|
|
|
puts(ANSI_CLEAR_LINE_TO_END);
|
|
|
|
printf(ANSI_CURSOR_POSITION, 3, 1);
|
|
|
|
puts(ANSI_CLEAR_LINE);
|
2023-04-11 23:21:22 +00:00
|
|
|
@@ -537,6 +541,7 @@ static enum bootmenu_ret bootmenu_show(i
|
2022-07-11 10:02:49 +00:00
|
|
|
return BOOTMENU_RET_FAIL;
|
2021-01-30 13:58:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ bootmenu->mtitle = env_get("bootmenu_title");
|
|
|
|
for (iter = bootmenu->first; iter; iter = iter->next) {
|
2022-07-11 10:02:49 +00:00
|
|
|
if (menu_item_add(menu, iter->key, iter) != 1)
|
2021-01-30 13:58:16 +00:00
|
|
|
goto cleanup;
|
2022-07-11 10:02:49 +00:00
|
|
|
--- a/include/menu.h
|
|
|
|
+++ b/include/menu.h
|
2023-04-11 23:21:22 +00:00
|
|
|
@@ -45,6 +45,7 @@ struct bootmenu_data {
|
2022-07-11 10:02:49 +00:00
|
|
|
int active; /* active menu entry */
|
|
|
|
int count; /* total count of menu entries */
|
|
|
|
struct bootmenu_entry *first; /* first menu entry */
|
|
|
|
+ char *mtitle; /* custom menu title */
|
|
|
|
bool last_choiced;
|
|
|
|
};
|
|
|
|
|