From 59255c556db6a1fbb94458d87f798a58d39a056f Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 24 Jul 2002 14:05:11 +0000 Subject: enhance (complicate? ;p) device detection so that scsi and usb detection are done only when no ide cdrom with mandrake install is detected (speed up), have usb keyboard modules installed before any interactive question, honour "noauto" (skip usb detection and insmod'ing) --- mdk-stage1/stdio-frontend.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdk-stage1/stdio-frontend.c') diff --git a/mdk-stage1/stdio-frontend.c b/mdk-stage1/stdio-frontend.c index 83e8fd76d..3fbed999a 100644 --- a/mdk-stage1/stdio-frontend.c +++ b/mdk-stage1/stdio-frontend.c @@ -27,6 +27,8 @@ #include #include +#include + #include "frontend.h" @@ -249,6 +251,8 @@ enum return_type ask_from_list_comments(char *msg, char ** elems, char ** elems_ int i = 1; int j = 0; + probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so... + while (elems && *elems) { elems++; i++; @@ -303,6 +307,7 @@ enum return_type ask_from_list_comments(char *msg, char ** elems, char ** elems_ enum return_type ask_from_list(char *msg, char ** elems, char ** choice) { + probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so... return ask_from_list_comments(msg, elems, NULL, choice); } @@ -311,6 +316,8 @@ enum return_type ask_yes_no(char *msg) { int j; + probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so... + printf("> %s\n[0] Yes [1] No [2] Back\n? ", msg); j = get_int_response(); @@ -328,6 +335,8 @@ enum return_type ask_from_entries(char *msg, char ** questions, char *** answers int j, i = 0; char ** already_answers = NULL; + probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so... + printf("> %s\n", msg); while (questions && *questions) { -- cgit v1.2.1