[BusyBox] insmod parameters with 2.6-kernels

Erik Andersen andersen at codepoet.org
Thu Aug 26 22:34:02 UTC 2004


On Sun Aug 22, 2004 at 09:25:52PM +0200, Magnus Damm wrote:
> Hi,
> 
> There is a mismatch between the documented options and the options that
> are supported by insmod when running on a 2.6-kernel...

Hmm.  I suppose a patch like this would work but then if someone
has insmod support for both 2.4 and 2.6 the usage message would
be wrong as well.  The real problem is a mismatch in feature
support between 2.4 and 2.6 insmod.  I guess I could make it so
you have to just pick either 2.4 or 2.6 support only....


--- include/usage.h	19 Aug 2004 18:25:02 -0000	1.220
+++ include/usage.h	26 Aug 2004 22:31:41 -0000
@@ -1263,6 +1263,12 @@
 #else
   #define USAGE_INSMOD_MAP(a)
 #endif
+#if defined(CONFIG_FEATURE_2_6_MODULES)
+#define insmod_trivial_usage \
+	"MODULE [MODULE OPTIONS]..."
+#define insmod_full_usage \
+	"Loads the specified kernel modules into the kernel."
+#else
 #define insmod_trivial_usage \
 	"[OPTION]... MODULE [symbol=value]..."
 #define insmod_full_usage \
@@ -1275,6 +1281,7 @@
 	USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout\n") \
 	"\t-o NAME\tSet internal module name to NAME\n" \
 	"\t-x\tdo not export externs"
+#endif
 
 #define install_trivial_usage \
 	"[-cgmops] [sources] <dest|directory>"
 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list