[SeaBIOS] [PATCH] bootmenu: Skip wait for keypress with less than one item

Paul Menzel paulepanter at users.sourceforge.net
Mon Jun 23 22:32:25 CEST 2014


Date: Mon, 23 Jun 2014 22:24:23 +0200

Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 src/boot.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/boot.c b/src/boot.c
index 5837ad0..ed8f5e2 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -486,6 +486,10 @@ interactive_bootmenu(void)
                , strtcpy(desc, pos->description, ARRAY_SIZE(desc)));
     }
 
+    if (maxmenu < 2)
+        printf("Autoselect only entry.\n")
+        return;
+
     // Get key press
     for (;;) {
         scan_code = get_keystroke(1000);
-- 
2.0.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.seabios.org/pipermail/seabios/attachments/20140623/0e4d7ce5/attachment.asc>


More information about the SeaBIOS mailing list