aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-07-22 00:03:39 +0000
committersandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-07-22 00:03:39 +0000
commite0ada2baa45ea0d550fd9d7a9f4ed25b1bc63062 (patch)
tree6598849f8ebab5294512c8a631dbc00a7d686377
parentd591a432a3b3aabb7dd101dc80979cc37c996679 (diff)
downloadbusybox-w32-e0ada2baa45ea0d550fd9d7a9f4ed25b1bc63062.tar.gz
busybox-w32-e0ada2baa45ea0d550fd9d7a9f4ed25b1bc63062.tar.bz2
busybox-w32-e0ada2baa45ea0d550fd9d7a9f4ed25b1bc63062.zip
Patch from Mike Snitzer <snitzer@gmail.com>:
Support for /etc/modprobe.conf (for 2.6 kernels) should likely be added to bb's modprobe, see attached patch. modprobe.conf is just a (even simpler) variant of modules.conf git-svn-id: svn://busybox.net/trunk/busybox@8996 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--modutils/modprobe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index c584d8a61..612e33a9e 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -275,9 +275,12 @@ static struct dep_t *build_dep ( void )
275 275
276 // alias parsing is not 100% correct (no correct handling of continuation lines within an alias) ! 276 // alias parsing is not 100% correct (no correct handling of continuation lines within an alias) !
277 277
278 if (( fd = open ( "/etc/modules.conf", O_RDONLY )) < 0 ) 278#if defined(CONFIG_FEATURE_2_6_MODULES)
279 if (( fd = open ( "/etc/conf.modules", O_RDONLY )) < 0 ) 279 if (( fd = open ( "/etc/modprobe.conf", O_RDONLY )) < 0 )
280 return first; 280#endif
281 if (( fd = open ( "/etc/modules.conf", O_RDONLY )) < 0 )
282 if (( fd = open ( "/etc/conf.modules", O_RDONLY )) < 0 )
283 return first;
281 284
282 continuation_line = 0; 285 continuation_line = 0;
283 while ( reads ( fd, buffer, sizeof( buffer ))) { 286 while ( reads ( fd, buffer, sizeof( buffer ))) {