summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-25 15:06:13 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-25 15:06:13 +0000
commit49d815276d8ef491c7a20888331787411d548fb8 (patch)
tree8426a378ce030bd4f568090c852b2131c742d9af
parentd44e50a3201eb35b5d7675c35f780f064930a526 (diff)
downloaddrakx-backup-do-not-use-49d815276d8ef491c7a20888331787411d548fb8.tar
drakx-backup-do-not-use-49d815276d8ef491c7a20888331787411d548fb8.tar.gz
drakx-backup-do-not-use-49d815276d8ef491c7a20888331787411d548fb8.tar.bz2
drakx-backup-do-not-use-49d815276d8ef491c7a20888331787411d548fb8.tar.xz
drakx-backup-do-not-use-49d815276d8ef491c7a20888331787411d548fb8.zip
print warning message when insmod of PCI-detected device fails
-rw-r--r--mdk-stage1/probing.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 9898d35f0..d67719041 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -49,6 +49,12 @@
#include "probing.h"
+static void warning_insmod_failed(void)
+{
+ error_message("Warning, installation of driver failed.");
+}
+
+
void probe_that_type(enum driver_type type)
{
if (IS_EXPERT)
@@ -100,15 +106,18 @@ void probe_that_type(enum driver_type type)
if (type == SCSI_ADAPTERS) {
/* insmod takes time, let's use the wait message */
wait_message("Installing %s", pcidb[i].name);
- my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL);
+ garb = my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL);
remove_wait_message();
+ if (garb)
+ warning_insmod_failed();
}
#endif
#ifndef DISABLE_NETWORK
if (type == NETWORK_DEVICES) {
/* insmod is quick, let's use the info message */
info_message("Found %s", pcidb[i].name);
- my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL);
+ if (my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL))
+ warning_insmod_failed();
}
#endif
}