[BusyBox-cvs] CVS update of busybox/modutils (modprobe.c)
Erik Andersen
andersen at codepoet.org
Mon Aug 16 10:22:34 UTC 2004
Date: Monday, August 16, 2004 @ 04:22:34
Author: andersen
Path: /var/cvs/busybox/modutils
Modified: modprobe.c (1.38 -> 1.39)
Only pass modprobe module params with 2.6.x kernel support.
-Erik
Index: busybox/modutils/modprobe.c
diff -u busybox/modutils/modprobe.c:1.38 busybox/modutils/modprobe.c:1.39
--- busybox/modutils/modprobe.c:1.38 Sat Aug 14 14:57:33 2004
+++ busybox/modutils/modprobe.c Mon Aug 16 04:22:34 2004
@@ -384,7 +384,7 @@
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 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 @@
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 @@
strcat ( head-> m_options, " " );
}
}
+#endif
// process tail ---> head
rc = mod_process ( tail, 1 );
More information about the busybox-cvs
mailing list