aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-16 10:22:34 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-16 10:22:34 +0000
commite3a792c80c9f9e12585dcf106fc336b75d782f41 (patch)
treed583a30a07554a188d1d8adc7b52b29fa13c9fe2
parent1f50e84283df7ac846f5abf8789fc253d60caf9c (diff)
downloadbusybox-e3a792c80c9f9e12585dcf106fc336b75d782f41.tar.gz
Only pass modprobe module params with 2.6.x kernel support.
-Erik
-rw-r--r--modutils/modprobe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 0d9ea24d0..7d6115380 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -384,7 +384,7 @@ static int mod_strcmp ( const char *mod_path, const char *mod_name )
static int already_loaded (const char *name)
{
int fd;
- char buffer[256];
+ char buffer[4096];
fd = open ("/proc/modules", O_RDONLY);
if (fd < 0)
@@ -409,7 +409,7 @@ static int already_loaded (const char *name)
static int mod_process ( struct mod_list_t *list, int do_insert )
{
- char lcmd [256];
+ char lcmd [4096];
int rc = 0;
while ( list ) {
@@ -550,6 +550,7 @@ static int mod_insert ( char *mod, int argc, char **argv )
check_dep ( mod, &head, &tail );
if ( head && tail ) {
+#if defined(CONFIG_FEATURE_2_6_MODULES)
if ( argc ) {
int i;
int l = 0;
@@ -566,6 +567,7 @@ static int mod_insert ( char *mod, int argc, char **argv )
strcat ( head-> m_options, " " );
}
}
+#endif
// process tail ---> head
rc = mod_process ( tail, 1 );