diff options
author | Tom Rini <trini@konsulko.com> | 2018-11-26 22:52:19 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-11-26 22:52:19 -0500 |
commit | 5d5833af64bbafb308b3a2415e3186def678861b (patch) | |
tree | 4d6f9762fb060dee45f5771604d61d5906aa5d66 /cmd/bootmenu.c | |
parent | 430c166bcedd22e0ce93ce298747275f814b172f (diff) | |
parent | 70c44f171882768fc6e4dcb0435110b7f897d02e (diff) |
Merge branch '2018-11-26-master-imports'
- chiliboard updates
- misc TI platform updates
Diffstat (limited to 'cmd/bootmenu.c')
-rw-r--r-- | cmd/bootmenu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c index 21f353ffd3..979ac4a638 100644 --- a/cmd/bootmenu.c +++ b/cmd/bootmenu.c @@ -253,6 +253,7 @@ static struct bootmenu_data *bootmenu_create(int delay) int len; char *sep; + char *default_str; struct bootmenu_entry *entry; menu = malloc(sizeof(struct bootmenu_data)); @@ -263,6 +264,10 @@ static struct bootmenu_data *bootmenu_create(int delay) menu->active = 0; menu->first = NULL; + default_str = env_get("bootmenu_default"); + if (default_str) + menu->active = (int)simple_strtol(default_str, NULL, 10); + while ((option = bootmenu_getoption(i))) { sep = strchr(option, '='); if (!sep) { |