summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/probing.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-18 21:16:09 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-18 21:16:09 +0000
commit890d160fcee9258d6079c64b51a67cccc596cc95 (patch)
tree7de458e05dcd401773f7918d30f6a6140d8c3941 /mdk-stage1/probing.c
parent478632060840a9dd32a64325d59819bd2025217a (diff)
downloaddrakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.gz
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.bz2
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.tar.xz
drakx-backup-do-not-use-890d160fcee9258d6079c64b51a67cccc596cc95.zip
add disk install support
Diffstat (limited to 'mdk-stage1/probing.c')
-rw-r--r--mdk-stage1/probing.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 83257ae39..16f9ebb06 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -55,19 +55,11 @@ void probe_that_type(enum driver_type type)
ask_insmod(type);
else {
/* ---- PCI probe */
- char * mytype;
FILE * f;
int len = 0;
char buf[200];
struct pci_module_map * pcidb = NULL;
- if (type == SCSI_ADAPTERS)
- mytype = "SCSI";
- else if (type == NETWORK_DEVICES)
- mytype = "NET";
- else
- return;
-
f = fopen("/proc/bus/pci/devices", "rb");
if (!f) {
@@ -105,7 +97,7 @@ void probe_that_type(enum driver_type type)
#ifndef DISABLE_MEDIAS
if (type == SCSI_ADAPTERS) {
/* insmod takes time, let's use the wait message */
- wait_message("Installing %s driver for %s", mytype, pcidb[i].name);
+ wait_message("Installing %s", pcidb[i].name);
my_insmod(pcidb[i].module);
remove_wait_message();
}
@@ -113,7 +105,7 @@ void probe_that_type(enum driver_type type)
#ifndef DISABLE_NETWORK
if (type == NETWORK_DEVICES) {
/* insmod is quick, let's use the info message */
- info_message("Found %s driver for %s", mytype, pcidb[i].name);
+ info_message("Found %s", pcidb[i].name);
my_insmod(pcidb[i].module);
}
#endif