diff options
author | Lauri Kasanen <curaga@operamail.com> | 2012-02-19 16:33:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-19 16:33:37 +0100 |
commit | 5a5db93b0f27a5fd090509f9745b63f49b9b7871 (patch) | |
tree | 2acfc39236ee3fa3cf77c07e3946a97c556882e1 | |
parent | 817c230a0c1b5817cbd0af86f1bd90db72f16c3c (diff) | |
download | busybox-w32-5a5db93b0f27a5fd090509f9745b63f49b9b7871.tar.gz busybox-w32-5a5db93b0f27a5fd090509f9745b63f49b9b7871.tar.bz2 busybox-w32-5a5db93b0f27a5fd090509f9745b63f49b9b7871.zip |
depmod: supply help text
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | modutils/depmod.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c index f6c0bf33a..775236126 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c | |||
@@ -10,11 +10,6 @@ | |||
10 | 10 | ||
11 | //applet:IF_DEPMOD(APPLET(depmod, BB_DIR_SBIN, BB_SUID_DROP)) | 11 | //applet:IF_DEPMOD(APPLET(depmod, BB_DIR_SBIN, BB_SUID_DROP)) |
12 | 12 | ||
13 | //usage:#if !ENABLE_MODPROBE_SMALL | ||
14 | //usage:#define depmod_trivial_usage NOUSAGE_STR | ||
15 | //usage:#define depmod_full_usage "" | ||
16 | //usage:#endif | ||
17 | |||
18 | #include "libbb.h" | 13 | #include "libbb.h" |
19 | #include "modutils.h" | 14 | #include "modutils.h" |
20 | #include <sys/utsname.h> /* uname() */ | 15 | #include <sys/utsname.h> /* uname() */ |
@@ -131,7 +126,16 @@ static void xfreopen_write(const char *file, FILE *f) | |||
131 | bb_perror_msg_and_die("can't open '%s'", file); | 126 | bb_perror_msg_and_die("can't open '%s'", file); |
132 | } | 127 | } |
133 | 128 | ||
134 | /* Usage: | 129 | //usage:#if !ENABLE_MODPROBE_SMALL |
130 | //usage:#define depmod_trivial_usage "[-n] [-b BASE] [VERSION] [MODFILES]..." | ||
131 | //usage:#define depmod_full_usage "\n\n" | ||
132 | //usage: "Generate modules.dep, alias, and symbols files" | ||
133 | //usage: "\n" | ||
134 | //usage: "\n -b BASE Use BASE/lib/modules/VERSION" | ||
135 | //usage: "\n -n Dry run: print files to stdout" | ||
136 | //usage:#endif | ||
137 | |||
138 | /* Upstream usage: | ||
135 | * [-aAenv] [-C FILE or DIR] [-b BASE] [-F System.map] [VERSION] [MODFILES]... | 139 | * [-aAenv] [-C FILE or DIR] [-b BASE] [-F System.map] [VERSION] [MODFILES]... |
136 | * -a --all | 140 | * -a --all |
137 | * Probe all modules. Default if no MODFILES. | 141 | * Probe all modules. Default if no MODFILES. |
@@ -142,7 +146,7 @@ static void xfreopen_write(const char *file, FILE *f) | |||
142 | * -C --config FILE or DIR | 146 | * -C --config FILE or DIR |
143 | * Path to /etc/depmod.conf or /etc/depmod.d/ | 147 | * Path to /etc/depmod.conf or /etc/depmod.d/ |
144 | * -e --errsyms | 148 | * -e --errsyms |
145 | * When combined with the -F option, this reports any symbols which | 149 | * When combined with the -F option, this reports any symbols |
146 | * which are not supplied by other modules or kernel. | 150 | * which are not supplied by other modules or kernel. |
147 | * -F --filesyms System.map | 151 | * -F --filesyms System.map |
148 | * -n --dry-run | 152 | * -n --dry-run |
@@ -154,8 +158,13 @@ static void xfreopen_write(const char *file, FILE *f) | |||
154 | * -u No-op | 158 | * -u No-op |
155 | * -q No-op | 159 | * -q No-op |
156 | * | 160 | * |
157 | * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]... | 161 | * So far we only support: [-n] [-b BASE] [VERSION] [MODFILES]... |
158 | * -aAeF are accepted but ignored. -vC are not accepted. | 162 | * Accepted but ignored: |
163 | * -aAe | ||
164 | * -F System.map | ||
165 | * -C FILE/DIR | ||
166 | * | ||
167 | * Not accepted: -v | ||
159 | */ | 168 | */ |
160 | enum { | 169 | enum { |
161 | //OPT_a = (1 << 0), /* All modules, ignore mods in argv */ | 170 | //OPT_a = (1 << 0), /* All modules, ignore mods in argv */ |