diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-05-31 20:06:24 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-05-31 20:06:24 +0000 |
| commit | fa82904a90e2d19f67f2e2ca8a4df6dba1eb6622 (patch) | |
| tree | 329cc4a055c7078a9d867fd0dfb8a58813043e0e /usr.sbin/sysinstall | |
| parent | 2d80eecc97d70ccb45a10cb1497e8fa3ee84504a (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
| -rw-r--r-- | usr.sbin/sysinstall/modules.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/modules.c b/usr.sbin/sysinstall/modules.c index f18beb54363e..18acc4dd5c7f 100644 --- a/usr.sbin/sysinstall/modules.c +++ b/usr.sbin/sysinstall/modules.c @@ -62,6 +62,10 @@ moduleInitialize(void) while ((dp = readdir(dirp))) { if (dp->d_namlen < (sizeof(".ko") - 1)) continue; if (strcmp(dp->d_name + dp->d_namlen - (sizeof(".ko") - 1), ".ko") == 0) { + strcpy(module, dp->d_name); + module[dp->d_namlen - (sizeof(".ko") - 1)] = '\0'; + if (modfind(module) != -1) + continue; strcpy(module, MODULESDIR); strcat(module, "/"); strcat(module, dp->d_name); |
