summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt-frontend.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-07-24 14:05:11 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-07-24 14:05:11 +0000
commit59255c556db6a1fbb94458d87f798a58d39a056f (patch)
treef4615fc18a1373a7dbcee6d3c0055a3221c3025f /mdk-stage1/newt-frontend.c
parent84d0ecb2c7f8a0191118b8f14140a209b660ccbd (diff)
downloaddrakx-59255c556db6a1fbb94458d87f798a58d39a056f.tar
drakx-59255c556db6a1fbb94458d87f798a58d39a056f.tar.gz
drakx-59255c556db6a1fbb94458d87f798a58d39a056f.tar.bz2
drakx-59255c556db6a1fbb94458d87f798a58d39a056f.tar.xz
drakx-59255c556db6a1fbb94458d87f798a58d39a056f.zip
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)
Diffstat (limited to 'mdk-stage1/newt-frontend.c')
-rw-r--r--mdk-stage1/newt-frontend.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdk-stage1/newt-frontend.c b/mdk-stage1/newt-frontend.c
index f50defee1..9d14dfc84 100644
--- a/mdk-stage1/newt-frontend.c
+++ b/mdk-stage1/newt-frontend.c
@@ -33,6 +33,8 @@
#include <sys/time.h>
#include "newt/newt.h"
+#include <probing.h>
+
#include "frontend.h"
void init_frontend(char * welcome_msg)
@@ -175,6 +177,8 @@ enum return_type ask_from_list_comments(char *msg, char ** elems, char ** elems_
char ** sav_elems = elems;
int i;
+ probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so...
+
i = 0;
while (elems && *elems) {
int j = (*elems_comments) ? strlen(*elems_comments) : 0;
@@ -206,6 +210,8 @@ enum return_type ask_from_list(char *msg, char ** elems, char ** choice)
{
int answer = 0, rc;
+ probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so...
+
rc = newtWinMenu("Please choose...", msg, 52, 5, 5, 7, elems, &answer, "Ok", "Cancel", NULL);
if (rc == 2)
@@ -221,6 +227,8 @@ enum return_type ask_yes_no(char *msg)
{
int rc;
+ probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so...
+
rc = newtWinTernary("Please answer...", "Yes", "No", "Back", msg);
if (rc == 1)
@@ -358,6 +366,8 @@ enum return_type ask_from_entries(char *msg, char ** questions, char *** answers
int rc;
char ** already_answers = NULL;
+ probe_that_type(USB_CONTROLLERS, BUS_USB); // we'd need the keyboard for interactions so...
+
while (questions && *questions) {
entries[i].text = *questions;
entries[i].flags = NEWT_FLAG_SCROLL | (!strcmp(*questions, "Password") ? NEWT_FLAG_PASSWORD : 0);