summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-30 15:03:44 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-30 15:03:44 +0000
commitc1cd104e380b066337428bbe4af055f8db198fe2 (patch)
treedb30029a962b3720cd83acbb27a0b544270dacf2 /mdk-stage1
parent1efb3ae0770ccccc835e4c4eb67b495b791e9192 (diff)
downloaddrakx-c1cd104e380b066337428bbe4af055f8db198fe2.tar
drakx-c1cd104e380b066337428bbe4af055f8db198fe2.tar.gz
drakx-c1cd104e380b066337428bbe4af055f8db198fe2.tar.bz2
drakx-c1cd104e380b066337428bbe4af055f8db198fe2.tar.xz
drakx-c1cd104e380b066337428bbe4af055f8db198fe2.zip
don't log anything when module is already present
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 210579c62..b3090fa18 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -251,6 +251,9 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attr
char ** net_devices = NULL; /* fucking compiler */
#endif
+ if (module_already_present(mod_name))
+ return INSMOD_OK;
+
log_message("have to insmod %s", mod_name);
if (disable_modules) {