diff options
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r-- | modutils/insmod.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index c4fb9279d..b88446c10 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -10,6 +10,28 @@ | |||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include "modutils.h" | 11 | #include "modutils.h" |
12 | 12 | ||
13 | /* 2.6 style insmod has no options and required filename | ||
14 | * (not module name - .ko can't be omitted) */ | ||
15 | |||
16 | //usage:#define insmod_trivial_usage | ||
17 | //usage: IF_FEATURE_2_4_MODULES("[OPTIONS] MODULE ") | ||
18 | //usage: IF_NOT_FEATURE_2_4_MODULES("FILE ") | ||
19 | //usage: "[symbol=value]..." | ||
20 | //usage:#define insmod_full_usage "\n\n" | ||
21 | //usage: "Load the specified kernel modules into the kernel" | ||
22 | //usage: IF_FEATURE_2_4_MODULES( "\n" | ||
23 | //usage: "\nOptions:" | ||
24 | //usage: "\n -f Force module to load into the wrong kernel version" | ||
25 | //usage: "\n -k Make module autoclean-able" | ||
26 | //usage: "\n -v Verbose" | ||
27 | //usage: "\n -q Quiet" | ||
28 | //usage: "\n -L Lock: prevent simultaneous loads" | ||
29 | //usage: IF_FEATURE_INSMOD_LOAD_MAP( | ||
30 | //usage: "\n -m Output load map to stdout" | ||
31 | //usage: ) | ||
32 | //usage: "\n -x Don't export externs" | ||
33 | //usage: ) | ||
34 | |||
13 | int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 35 | int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
14 | int insmod_main(int argc UNUSED_PARAM, char **argv) | 36 | int insmod_main(int argc UNUSED_PARAM, char **argv) |
15 | { | 37 | { |