summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-10 21:13:10 +0000
committerErik Troan <ewt@redhat.com>1999-08-10 21:13:10 +0000
commitef55326a4af2f1e35591c21d7967c4cd780a531c (patch)
tree19cbf7f0582a4664110c5b459d3f4c812d06ec29 /loader/modules.c
parentcceea1192f9f0039d179988ad0d81562e0076990 (diff)
downloadanaconda-ef55326a4af2f1e35591c21d7967c4cd780a531c.tar.gz
anaconda-ef55326a4af2f1e35591c21d7967c4cd780a531c.tar.xz
anaconda-ef55326a4af2f1e35591c21d7967c4cd780a531c.zip
added ability to manually add device drivers
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/loader/modules.c b/loader/modules.c
index 3ffba7fba..da4d26965 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -185,11 +185,13 @@ int mlLoadModule(char * modName, moduleList modLoaded,
}
}
- if (testing) return 0;
-
sprintf(fileName, "%s.o", modName);
- rc = insmod(fileName, args);
+ if (testing)
+ rc = 0;
+ else
+ rc = insmod(fileName, args);
+
if (!rc) {
modLoaded->mods[modLoaded->numModules].name = strdup(modName);
modLoaded->mods[modLoaded->numModules].weLoaded = 1;