summaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
authorPascal Bellard2010-06-07 01:16:45 +0200
committerDenys Vlasenko2010-06-07 01:18:53 +0200
commitb82b34e06d0f8b91a1a30a847e0b1dd80ed0a046 (patch)
tree17527de763a7e688023cb72a8ead602293b3b7b9 /modutils/insmod.c
parente3657dcdd655ec96fc6bf38c40dd6a6f015a83de (diff)
downloadbusybox-b82b34e06d0f8b91a1a30a847e0b1dd80ed0a046.zip
busybox-b82b34e06d0f8b91a1a30a847e0b1dd80ed0a046.tar.gz
modprobe: add support for -l and -s. Remove some unsupported options
Fixed some goofs in help text function old new delta modprobe_main 494 653 +159 packed_usage 27129 27145 +16 insmod_main 98 95 -3 Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index c4fb927..b88446c 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -10,6 +10,28 @@
#include "libbb.h"
#include "modutils.h"
+/* 2.6 style insmod has no options and required filename
+ * (not module name - .ko can't be omitted) */
+
+//usage:#define insmod_trivial_usage
+//usage: IF_FEATURE_2_4_MODULES("[OPTIONS] MODULE ")
+//usage: IF_NOT_FEATURE_2_4_MODULES("FILE ")
+//usage: "[symbol=value]..."
+//usage:#define insmod_full_usage "\n\n"
+//usage: "Load the specified kernel modules into the kernel"
+//usage: IF_FEATURE_2_4_MODULES( "\n"
+//usage: "\nOptions:"
+//usage: "\n -f Force module to load into the wrong kernel version"
+//usage: "\n -k Make module autoclean-able"
+//usage: "\n -v Verbose"
+//usage: "\n -q Quiet"
+//usage: "\n -L Lock: prevent simultaneous loads"
+//usage: IF_FEATURE_INSMOD_LOAD_MAP(
+//usage: "\n -m Output load map to stdout"
+//usage: )
+//usage: "\n -x Don't export externs"
+//usage: )
+
int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int insmod_main(int argc UNUSED_PARAM, char **argv)
{