diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-05 20:34:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-05 20:34:34 -0400 |
commit | 730230063c4194a1977589bba0beec6bfedb6514 (patch) | |
tree | 382eabc106aef2a43699d67f25786757710acb0b /src/boot.c | |
parent | 8b565781f1e4043613ede1bcd3b7c4216d62a5d6 (diff) | |
download | seabios-730230063c4194a1977589bba0beec6bfedb6514.tar.gz |
Replace CONFIG_BOOTMENU_WAIT with dynamic "etc/boot-menu-wait" file.
Diffstat (limited to 'src/boot.c')
-rw-r--r-- | src/boot.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -377,6 +377,8 @@ boot_add_cbfs(void *data, const char *desc, int prio) * Boot menu and BCV execution ****************************************************************/ +#define DEFAULT_BOOTMENU_WAIT 2500 + // Show IPL option menu. static void interactive_bootmenu(void) @@ -389,8 +391,9 @@ interactive_bootmenu(void) printf("Press F12 for boot menu.\n\n"); + u32 menutime = romfile_loadint("etc/boot-menu-wait", DEFAULT_BOOTMENU_WAIT); enable_bootsplash(); - int scan_code = get_keystroke(CONFIG_BOOTMENU_WAIT); + int scan_code = get_keystroke(menutime); disable_bootsplash(); if (scan_code != 0x86) /* not F12 */ |