Date: Mon, 23 Jun 2014 22:24:23 +0200
Signed-off-by: Paul Menzel paulepanter@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);