summaryrefslogtreecommitdiff
path: root/modutils/rmmod.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-10-16 01:56:41 +0200
committerDenys Vlasenko2010-10-16 01:56:41 +0200
commit1a5e11c874a1f53c5205140a9d675b7e6404bbc9 (patch)
treede2ce1f3b0d653b26513dbe37f980616d1500491 /modutils/rmmod.c
parent70186711f45816bdf4562831af3bd995172eb47b (diff)
downloadbusybox-1a5e11c874a1f53c5205140a9d675b7e6404bbc9.zip
busybox-1a5e11c874a1f53c5205140a9d675b7e6404bbc9.tar.gz
modutils/*: move help bits into corresponding .c files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'modutils/rmmod.c')
-rw-r--r--modutils/rmmod.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 51390eb..dde7773 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -10,6 +10,19 @@
//applet:IF_RMMOD(APPLET(rmmod, _BB_DIR_SBIN, _BB_SUID_DROP))
+//usage:#if !ENABLE_MODPROBE_SMALL
+//usage:#define rmmod_trivial_usage
+//usage: "[-wfa] [MODULE]..."
+//usage:#define rmmod_full_usage "\n\n"
+//usage: "Unload kernel modules\n"
+//usage: "\nOptions:"
+//usage: "\n -w Wait until the module is no longer used"
+//usage: "\n -f Force unload"
+//usage: "\n -a Remove all unused modules (recursively)"
+//usage:#define rmmod_example_usage
+//usage: "$ rmmod tulip\n"
+//usage:#endif
+
#include "libbb.h"
#include "modutils.h"