aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe-small.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-16 01:56:41 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-16 01:56:41 +0200
commit1a5e11c874a1f53c5205140a9d675b7e6404bbc9 (patch)
treede2ce1f3b0d653b26513dbe37f980616d1500491 /modutils/modprobe-small.c
parent70186711f45816bdf4562831af3bd995172eb47b (diff)
downloadbusybox-w32-1a5e11c874a1f53c5205140a9d675b7e6404bbc9.tar.gz
busybox-w32-1a5e11c874a1f53c5205140a9d675b7e6404bbc9.tar.bz2
busybox-w32-1a5e11c874a1f53c5205140a9d675b7e6404bbc9.zip
modutils/*: move help bits into corresponding .c files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'modutils/modprobe-small.c')
-rw-r--r--modutils/modprobe-small.c43
1 files changed, 42 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 86470892a..ec3ddfb8f 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -694,6 +694,46 @@ The following options are useful for people managing distributions:
694*/ 694*/
695 695
696//usage:#if ENABLE_MODPROBE_SMALL 696//usage:#if ENABLE_MODPROBE_SMALL
697
698//usage:#define depmod_trivial_usage NOUSAGE_STR
699//usage:#define depmod_full_usage ""
700
701//usage:#define lsmod_trivial_usage
702//usage: ""
703//usage:#define lsmod_full_usage "\n\n"
704//usage: "List the currently loaded kernel modules"
705
706//usage:#define insmod_trivial_usage
707//usage: IF_FEATURE_2_4_MODULES("[OPTIONS] MODULE ")
708//usage: IF_NOT_FEATURE_2_4_MODULES("FILE ")
709//usage: "[SYMBOL=VALUE]..."
710//usage:#define insmod_full_usage "\n\n"
711//usage: "Load the specified kernel modules into the kernel"
712//usage: IF_FEATURE_2_4_MODULES( "\n"
713//usage: "\nOptions:"
714//usage: "\n -f Force module to load into the wrong kernel version"
715//usage: "\n -k Make module autoclean-able"
716//usage: "\n -v Verbose"
717//usage: "\n -q Quiet"
718//usage: "\n -L Lock: prevent simultaneous loads"
719//usage: IF_FEATURE_INSMOD_LOAD_MAP(
720//usage: "\n -m Output load map to stdout"
721//usage: )
722//usage: "\n -x Don't export externs"
723//usage: )
724
725//usage:#define rmmod_trivial_usage
726//usage: "[-wfa] [MODULE]..."
727//usage:#define rmmod_full_usage "\n\n"
728//usage: "Unload kernel modules\n"
729//usage: "\nOptions:"
730//usage: "\n -w Wait until the module is no longer used"
731//usage: "\n -f Force unload"
732//usage: "\n -a Remove all unused modules (recursively)"
733//usage:
734//usage:#define rmmod_example_usage
735//usage: "$ rmmod tulip\n"
736
697//usage:#define modprobe_trivial_usage 737//usage:#define modprobe_trivial_usage
698//usage: "[-qfwrsv] MODULE [symbol=value]..." 738//usage: "[-qfwrsv] MODULE [symbol=value]..."
699//usage:#define modprobe_full_usage "\n\n" 739//usage:#define modprobe_full_usage "\n\n"
@@ -704,7 +744,8 @@ The following options are useful for people managing distributions:
704//usage: "\n -f Force" 744//usage: "\n -f Force"
705//usage: "\n -w Wait for unload" 745//usage: "\n -w Wait for unload"
706//usage: "\n -s Report via syslog instead of stderr" 746//usage: "\n -s Report via syslog instead of stderr"
707//usage:#endif /* ENABLE_MODPROBE_SMALL */ 747
748//usage:#endif
708 749
709int modprobe_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 750int modprobe_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
710int modprobe_main(int argc UNUSED_PARAM, char **argv) 751int modprobe_main(int argc UNUSED_PARAM, char **argv)