From 0a7d04ff4bfbb562304038a9d87668f455d1b963 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 6 Jun 2001 12:21:51 +0000 Subject: use a wait_message again when in automatic mode for insmoding scsi modules since it's long --- mdk-stage1/probing.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 5b366ca7b..dc8340ea8 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -163,8 +163,18 @@ static void probe_that_type(enum driver_type type) log_message("PCI: device %04x %04x is \"%s\" (%s)", vendor, device, pcidb[i].name, pcidb[i].module); #ifndef DISABLE_MEDIAS if (type == SCSI_ADAPTERS) { - stg1_info_message("About to load driver for SCSI adapter:\n \n%s", pcidb[i].name); - warning_insmod_failed(my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL)); + int wait_msg = 0; + enum insmod_return failed; + if (IS_AUTOMATIC) { + wait_message("Loading driver for SCSI adapter:\n \n%s", pcidb[i].name); + wait_msg = 1; + } else + stg1_info_message("About to load driver for SCSI adapter:\n \n%s", pcidb[i].name); + failed = my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL); + if (wait_msg) + remove_wait_message(); + warning_insmod_failed(failed); + } #endif #ifndef DISABLE_NETWORK -- cgit v1.2.1