Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/include/usage.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 6  Line 6 
6   * 2. Do not use \t in messages, use real tab character.   * 2. Do not use \t in messages, use real tab character.
7   * 3. Start each source line with message as follows:   * 3. Start each source line with message as follows:
8   *    |<7 spaces>"text with tabs"....   *    |<7 spaces>"text with tabs"....
9     * or
10     *    |<5 spaces>"\ntext with tabs"....
11   */   */
12    #ifndef BB_USAGE_H
13    #define BB_USAGE_H 1
14    
15  #ifndef __BB_USAGE_H__  
16  #define __BB_USAGE_H__  #define NOUSAGE_STR "\b"
17    
18    #define acpid_trivial_usage \
19           "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..."
20    #define acpid_full_usage "\n\n" \
21           "Listen to ACPI events and spawn specific helpers on event arrival\n" \
22         "\nOptions:" \
23         "\n -d Don't daemonize, log to stderr" \
24         "\n -c DIR Config directory [/etc/acpi]" \
25         "\n -e FILE /proc event file [/proc/acpi/event]" \
26         "\n -l FILE Log file [/var/log/acpid]" \
27     IF_FEATURE_ACPID_COMPAT( \
28         "\n\nAccept and ignore compatibility options -g -m -s -S -v" \
29     )
30    
31    #define acpid_example_usage \
32           "# acpid -l /var/log/my-acpi-log\n" \
33           "# acpid -d /dev/input/event*\n"
34    
35  #define addgroup_trivial_usage \  #define addgroup_trivial_usage \
36         "[-g GID] group_name [user_name]"         "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP"
37  #define addgroup_full_usage \  #define addgroup_full_usage "\n\n" \
38         "Add a group to the system" \         "Add a group " IF_FEATURE_ADDUSER_TO_GROUP("or add a user to a group") "\n" \
39         "\n\nOptions:\n" \       "\nOptions:" \
40         " -g GID Specify gid"       "\n -g GID Group id" \
41         "\n -S Create a system group" \
42    
43  #define adduser_trivial_usage \  #define adduser_trivial_usage \
44         "[OPTIONS] user_name"         "[OPTIONS] USER"
45  #define adduser_full_usage \  #define adduser_full_usage "\n\n" \
46         "Add a user to the system" \         "Add a user\n" \
47         "\n\nOptions:\n" \       "\nOptions:" \
48         " -h DIR Assign home directory DIR\n" \       "\n -h DIR Home directory" \
49         " -g GECOS Assign gecos field GECOS\n" \       "\n -g GECOS GECOS field" \
50         " -s SHELL Assign login shell SHELL\n" \       "\n -s SHELL Login shell" \
51         " -G Add the user to existing group GROUP\n" \       "\n -G GRP Add user to existing group" \
52         " -S Create a system user (ignored)\n" \       "\n -S Create a system user" \
53         " -D Do not assign a password (logins still possible via ssh)\n" \       "\n -D Don't assign a password" \
54         " -H Do not create the home directory"       "\n -H Don't create home directory" \
55         "\n -u UID User id" \
56    
57  #define adjtimex_trivial_usage \  #define adjtimex_trivial_usage \
58         "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"         "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
59  #define adjtimex_full_usage \  #define adjtimex_full_usage "\n\n" \
60         "Read and optionally set system timebase parameters.\n" \         "Read and optionally set system timebase parameters. See adjtimex(2)\n" \
61         "See adjtimex(2)." \       "\nOptions:" \
62         "\n\nOptions:\n" \       "\n -q Quiet" \
63         " -q Quiet mode - do not print\n" \       "\n -o OFF Time offset, microseconds" \
64         " -o offset Time offset, microseconds\n" \       "\n -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)" \
65         " -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)\n" \       "\n (positive values make clock run faster)" \
66         " (positive values make the system clock run fast)\n" \       "\n -t TICK Microseconds per tick, usually 10000" \
67         " -t tick Microseconds per tick, usually 10000\n" \       "\n -p TCONST" \
        " -p timeconstant"  
68    
69  #define ar_trivial_usage \  #define ar_trivial_usage \
70         "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"         "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
71  #define ar_full_usage \  #define ar_full_usage "\n\n" \
72         "Extract or list FILES from an ar archive" \         "Extract or list FILES from an ar archive\n" \
73         "\n\nOptions:\n" \       "\nOptions:" \
74         " -o Preserve original dates\n" \       "\n -o Preserve original dates" \
75         " -p Extract to stdout\n" \       "\n -p Extract to stdout" \
76         " -t List\n" \       "\n -t List" \
77         " -x Extract\n" \       "\n -x Extract" \
78         " -v Verbosely list files processed"       "\n -v Verbose" \
79    
80  #define arp_trivial_usage \  #define arp_trivial_usage \
81         "\n" \       "\n[-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME]" \
82         "[-vn] [-H type] [-i if] -a [hostname]\n" \       "\n[-v]    [-i IF] -d HOSTNAME [pub]" \
83         "[-v]  [-i if] -d hostname [pub]\n" \       "\n[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]" \
84         "[-v] [-H type] [-i if] -s hostname hw_addr [temp]\n" \       "\n[-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub" \
85         "[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub\n" \       "\n[-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub"
86         "[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub\n"  #define arp_full_usage "\n\n" \
87  #define arp_full_usage \         "Manipulate ARP cache\n" \
88         "Manipulate the system ARP cache" \       "\nOptions:" \
        "\n\nOptions:" \  
89         "\n -a Display (all) hosts" \         "\n -a Display (all) hosts" \
90         "\n -s Set a new ARP entry" \         "\n -s Set new ARP entry" \
91         "\n -d Delete a specified entry" \         "\n -d Delete a specified entry" \
92         "\n -v Verbose" \         "\n -v Verbose" \
93         "\n -n Don't resolve names" \         "\n -n Don't resolve names" \
94         "\n -i if Specify network interface (e.g. eth0)" \         "\n -i IF Network interface" \
95         "\n -D Read <hwaddr> from given device" \         "\n -D Read <hwaddr> from given device" \
96         "\n -A, -p Specify protocol family" \         "\n -A, -p AF Protocol family" \
97         "\n -H hwtype Specify hardware address type"         "\n -H HWTYPE Hardware address type" \
98    
99  #define arping_trivial_usage \  #define arping_trivial_usage \
100         "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target"         "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP"
101  #define arping_full_usage \  #define arping_full_usage "\n\n" \
102         "Ping hosts by ARP requests/replies" \         "Send ARP requests/replies\n" \
103         "\n\nOptions:\n" \       "\nOptions:" \
104         " -f Quit on first ARP reply\n" \       "\n -f Quit on first ARP reply" \
105         " -q Be quiet\n" \       "\n -q Quiet" \
106         " -b Keep broadcasting, don't go unicast\n" \       "\n -b Keep broadcasting, don't go unicast" \
107         " -D Duplicated address detection mode\n" \       "\n -D Duplicated address detection mode" \
108         " -U Unsolicited ARP mode, update your neighbours\n" \       "\n -U Unsolicited ARP mode, update your neighbors" \
109         " -A ARP answer mode, update your neighbours\n" \       "\n -A ARP answer mode, update your neighbors" \
110         " -c count Stop after sending count ARP request packets\n" \       "\n -c N Stop after sending N ARP requests" \
111         " -w timeout Time to wait for ARP reply, in seconds\n" \       "\n -w TIMEOUT Time to wait for ARP reply, seconds" \
112         " -i device Outgoing interface name, default is eth0\n" \       "\n -I IFACE Interface to use (default eth0)" \
113         " -s sender Set specific sender IP address\n" \       "\n -s SRC_IP Sender IP address" \
114         " target Target IP address of ARP request"       "\n DST_IP Target IP address" \
115    
116  #define ash_trivial_usage \  #define sh_trivial_usage NOUSAGE_STR
117         "[FILE]...\n" \  #define sh_full_usage ""
118         "or: ash -c command [args]..."  #define ash_trivial_usage NOUSAGE_STR
119  #define ash_full_usage \  #define ash_full_usage ""
120         "The ash shell (command interpreter)"  #define hush_trivial_usage NOUSAGE_STR
121    #define hush_full_usage ""
122    #define lash_trivial_usage NOUSAGE_STR
123    #define lash_full_usage ""
124    #define msh_trivial_usage NOUSAGE_STR
125    #define msh_full_usage ""
126    
127  #define awk_trivial_usage \  #define awk_trivial_usage \
128         "[OPTION]... [program-text] [FILE ...]"         "[OPTIONS] [AWK_PROGRAM] [FILE]..."
129  #define awk_full_usage \  #define awk_full_usage "\n\n" \
130         "Options:\n" \         "Options:" \
131         " -v var=val Assign value 'val' to variable 'var'\n" \       "\n -v VAR=VAL Set variable" \
132         " -F sep Use 'sep' as field separator\n" \       "\n -F SEP Use SEP as field separator" \
133         " -f progname Read program source from file 'progname'"       "\n -f FILE Read program from FILE" \
134    
135  #define basename_trivial_usage \  #define basename_trivial_usage \
136         "FILE [SUFFIX]"         "FILE [SUFFIX]"
137  #define basename_full_usage \  #define basename_full_usage "\n\n" \
138         "Strip directory path and suffixes from FILE.\n" \         "Strip directory path and .SUFFIX from FILE\n"
        "If specified, also remove any trailing SUFFIX."  
139  #define basename_example_usage \  #define basename_example_usage \
140         "$ basename /usr/local/bin/foo\n" \         "$ basename /usr/local/bin/foo\n" \
141         "foo\n" \         "foo\n" \
# Line 119  Line 144 
144         "$ basename /foo/bar.txt .txt\n" \         "$ basename /foo/bar.txt .txt\n" \
145         "bar"         "bar"
146    
147    #define beep_trivial_usage \
148           "-f FREQ -l LEN -d DELAY -r COUNT -n"
149    #define beep_full_usage "\n\n" \
150           "Options:" \
151         "\n -f Frequency in Hz" \
152         "\n -l Length in ms" \
153         "\n -d Delay in ms" \
154         "\n -r Repetitions" \
155         "\n -n Start new tone" \
156    
157    #define fbsplash_trivial_usage \
158           "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
159    #define fbsplash_full_usage "\n\n" \
160           "Options:" \
161         "\n -s Image" \
162         "\n -c Hide cursor" \
163         "\n -d Framebuffer device (default /dev/fb0)" \
164         "\n -i Config file (var=value):" \
165         "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \
166         "\n BAR_R,BAR_G,BAR_B" \
167         "\n -f Control pipe (else exit after drawing image)" \
168         "\n commands: 'NN' (% for progress bar) or 'exit'" \
169    
170    #define brctl_trivial_usage \
171           "COMMAND [BRIDGE [INTERFACE]]"
172    #define brctl_full_usage "\n\n" \
173           "Manage ethernet bridges\n" \
174         "\nCommands:" \
175     IF_FEATURE_BRCTL_SHOW( \
176         "\n show Show a list of bridges" \
177     ) \
178         "\n addbr BRIDGE Create BRIDGE" \
179         "\n delbr BRIDGE Delete BRIDGE" \
180         "\n addif BRIDGE IFACE Add IFACE to BRIDGE" \
181         "\n delif BRIDGE IFACE Delete IFACE from BRIDGE" \
182     IF_FEATURE_BRCTL_FANCY( \
183         "\n setageing BRIDGE TIME Set ageing time" \
184         "\n setfd BRIDGE TIME Set bridge forward delay" \
185         "\n sethello BRIDGE TIME Set hello time" \
186         "\n setmaxage BRIDGE TIME Set max message age" \
187         "\n setpathcost BRIDGE COST Set path cost" \
188         "\n setportprio BRIDGE PRIO Set port priority" \
189         "\n setbridgeprio BRIDGE PRIO Set bridge priority" \
190         "\n stp BRIDGE [1|0] STP on/off" \
191     ) \
192    
193  #define bunzip2_trivial_usage \  #define bunzip2_trivial_usage \
194         "[OPTION]... [FILE]"         "[OPTIONS] [FILE]..."
195  #define bunzip2_full_usage \  #define bunzip2_full_usage "\n\n" \
196         "Uncompress FILE (or standard input if FILE is '-' or omitted)" \         "Uncompress FILEs (or stdin)\n" \
197         "\n\nOptions:\n" \       "\nOptions:" \
198         " -c Write output to standard output\n" \       "\n -c Write to stdout" \
199         " -f Force"       "\n -f Force" \
200    
201    #define bzip2_trivial_usage \
202           "[OPTIONS] [FILE]..."
203    #define bzip2_full_usage "\n\n" \
204           "Compress FILEs (or stdin) with bzip2 algorithm\n" \
205         "\nOptions:" \
206         "\n -c Write to stdout" \
207         "\n -d Decompress" \
208         "\n -f Force" \
209         "\n -1..-9 Compression level" \
210    
211  #define busybox_notes_usage \  #define busybox_notes_usage \
212         "Hello world!\n"         "Hello world!\n"
213    
214    #define lzop_trivial_usage \
215           "[-cfvd123456789CF] [FILE]..."
216    #define lzop_full_usage "\n\n" \
217           " -c Write to stdout" \
218         "\n -f Force" \
219         "\n -v Verbose" \
220         "\n -d Decompress" \
221         "\n -F Don't store or verify checksum" \
222         "\n -C Also write checksum of compressed block" \
223         "\n -1..9 Compression level" \
224    
225    #define lzopcat_trivial_usage \
226           "[-vCF] [FILE]..."
227    #define lzopcat_full_usage "\n\n" \
228           " -v Verbose" \
229         "\n -F Don't store or verify checksum" \
230    
231    #define unlzop_trivial_usage \
232           "[-cfvCF] [FILE]..."
233    #define unlzop_full_usage "\n\n" \
234           " -c Write to stdout" \
235         "\n -f Force" \
236         "\n -v Verbose" \
237         "\n -F Don't store or verify checksum" \
238    
239  #define bzcat_trivial_usage \  #define bzcat_trivial_usage \
240         "FILE"         "FILE"
241  #define bzcat_full_usage \  #define bzcat_full_usage "\n\n" \
242         "Uncompress to stdout"         "Uncompress to stdout"
243    
244  #define unlzma_trivial_usage \  #define unlzma_trivial_usage \
245         "[OPTION]... [FILE]"         "[OPTIONS] [FILE]..."
246  #define unlzma_full_usage \  #define unlzma_full_usage "\n\n" \
247         "Uncompress FILE (or standard input if FILE is '-' or omitted)" \         "Uncompress FILE (or stdin)\n" \
248         "\n\nOptions:\n" \       "\nOptions:" \
249         " -c Write output to standard output\n" \       "\n -c Write to stdout" \
250         " -f Force"       "\n -f Force" \
251    
252  #define lzmacat_trivial_usage \  #define lzmacat_trivial_usage \
253         "FILE"         "FILE"
254  #define lzmacat_full_usage \  #define lzmacat_full_usage "\n\n" \
255         "Uncompress to stdout"         "Uncompress to stdout"
256    
257  #define cal_trivial_usage \  #define cal_trivial_usage \
258         "[-jy] [[month] year]"         "[-jy] [[MONTH] YEAR]"
259  #define cal_full_usage \  #define cal_full_usage "\n\n" \
260         "Display a calendar" \         "Display a calendar\n" \
261         "\n\nOptions:\n" \       "\nOptions:" \
262         " -j Use julian dates\n" \       "\n -j Use julian dates" \
263         " -y Display the entire year"       "\n -y Display the entire year" \
264    
265  #define cat_trivial_usage \  #define cat_trivial_usage \
266         "[-u] [FILE]..."         "[-u] [FILE]..."
267  #define cat_full_usage \  #define cat_full_usage "\n\n" \
268         "Concatenate FILE(s) and print them to stdout" \         "Concatenate FILEs and print them to stdout\n" \
269         "\n\nOptions:\n" \       "\nOptions:" \
270         " -u Ignored since unbuffered i/o is always used"       "\n -u Use unbuffered i/o (ignored)" \
271    
272  #define cat_example_usage \  #define cat_example_usage \
273         "$ cat /proc/uptime\n" \         "$ cat /proc/uptime\n" \
274         "110716.72 17.67"         "110716.72 17.67"
275    
276  #define catv_trivial_usage \  #define catv_trivial_usage \
277         "[-etv] [FILE]..."         "[-etv] [FILE]..."
278  #define catv_full_usage \  #define catv_full_usage "\n\n" \
279         "Display nonprinting characters as ^x or M-x" \         "Display nonprinting characters as ^x or M-x\n" \
280         "\n\nOptions:\n" \       "\nOptions:" \
281         " -e End each line with $\n" \       "\n -e End each line with $" \
282         " -t Show tabs as ^I\n" \       "\n -t Show tabs as ^I" \
283         " -v Don't use ^x or M-x escapes"       "\n -v Don't use ^x or M-x escapes" \
284  #define chattr_trivial_usage \  
285         "[-R] [-+=AacDdijsStTu] [-v version] files..."  #define chat_trivial_usage \
286  #define chattr_full_usage \         "EXPECT [SEND [EXPECT [SEND...]]]"
287         "Change file attributes on an ext2 fs\n\n" \  #define chat_full_usage "\n\n" \
288         "Modifiers:\n" \         "Useful for interacting with a modem connected to stdin/stdout.\n" \
289         " - Remove attributes\n" \         "A script consists of one or more \"expect-send\" pairs of strings,\n" \
290         " + Add attributes\n" \         "each pair is a pair of arguments. Example:\n" \
291         " = Set attributes\n" \         "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'" \
        "Attributes:\n" \  
        " A Don't track atime\n" \  
        " a Append mode only\n" \  
        " c Enable compress\n" \  
        " D Write dir contents synchronously\n" \  
        " d Do not backup with dump\n" \  
        " i Cannot be modified (immutable)\n" \  
        " j Write all data to journal first\n" \  
        " s Zero disk storage when deleted\n" \  
        " S Write file contents synchronously\n" \  
        " t Disable tail-merging of partial blocks with other files\n" \  
        " u Allow file to be undeleted\n" \  
        "Options:\n" \  
        " -R Recursively list subdirectories\n" \  
        " -v Set the file's version/generation number"  
292    
293  #define chgrp_trivial_usage \  #define chattr_trivial_usage \
294         "[-Rh"USE_DESKTOP("cvf")"]... GROUP FILE..."         "[-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]..."
295  #define chgrp_full_usage \  #define chattr_full_usage "\n\n" \
296         "Change the group membership of each FILE to GROUP" \         "Change file attributes on an ext2 fs\n" \
297         "\n\nOptions:\n" \       "\nModifiers:" \
298         " -R Changes files and directories recursively\n" \       "\n - Remove attributes" \
299         " -h Do not dereference symbolic links" \       "\n + Add attributes" \
300   USE_DESKTOP( \       "\n = Set attributes" \
301         "\n -c List changed files" \       "\nAttributes:" \
302         "\n -v List all files" \       "\n A Don't track atime" \
303         "\n -f Hide errors" \       "\n a Append mode only" \
304         "\n c Enable compress" \
305         "\n D Write dir contents synchronously" \
306         "\n d Don't backup with dump" \
307         "\n i Cannot be modified (immutable)" \
308         "\n j Write all data to journal first" \
309         "\n s Zero disk storage when deleted" \
310         "\n S Write file contents synchronously" \
311         "\n t Disable tail-merging of partial blocks with other files" \
312         "\n u Allow file to be undeleted" \
313         "\nOptions:" \
314         "\n -R Recurse" \
315         "\n -v Set the file's version/generation number" \
316    
317    #define chcon_trivial_usage \
318           "[OPTIONS] CONTEXT FILE..." \
319           "\n chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..." \
320     IF_FEATURE_CHCON_LONG_OPTIONS( \
321           "\n chcon [OPTIONS] --reference=RFILE FILE..." \
322     )
323    #define chcon_full_usage "\n\n" \
324           "Change the security context of each FILE to CONTEXT\n" \
325     IF_FEATURE_CHCON_LONG_OPTIONS( \
326         "\n -v,--verbose Verbose" \
327         "\n -c,--changes Report changes made" \
328         "\n -h,--no-dereference Affect symlinks instead of their targets" \
329         "\n -f,--silent,--quiet Suppress most error messages" \
330         "\n --reference=RFILE Use RFILE's group instead of using a CONTEXT value" \
331         "\n -u,--user=USER Set user/role/type/range in the target" \
332         "\n -r,--role=ROLE security context" \
333         "\n -t,--type=TYPE" \
334         "\n -l,--range=RANGE" \
335         "\n -R,--recursive Recurse" \
336     ) \
337     IF_NOT_FEATURE_CHCON_LONG_OPTIONS( \
338         "\n -v Verbose" \
339         "\n -c Report changes made" \
340         "\n -h Affect symlinks instead of their targets" \
341         "\n -f Suppress most error messages" \
342         "\n -u USER Set user/role/type/range in the target security context" \
343         "\n -r ROLE" \
344         "\n -t TYPE" \
345         "\n -l RNG" \
346         "\n -R Recurse" \
347   )   )
 #define chgrp_example_usage \  
        "$ ls -l /tmp/foo\n" \  
        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \  
        "$ chgrp root /tmp/foo\n" \  
        "$ ls -l /tmp/foo\n" \  
        "-r--r--r--    1 andersen root            0 Apr 12 18:25 /tmp/foo\n"  
348    
349  #define chmod_trivial_usage \  #define chmod_trivial_usage \
350         "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..."         "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
351  #define chmod_full_usage \  #define chmod_full_usage "\n\n" \
352         "Each MODE is one or more of the letters ugoa, one of the\n" \         "Each MODE is one or more of the letters ugoa, one of the\n" \
353         "symbols +-= and one or more of the letters rwxst" \         "symbols +-= and one or more of the letters rwxst\n" \
354         "\n\nOptions:" \       "\nOptions:" \
355         "\n -R Changes files and directories recursively" \       "\n -R Recurse" \
356   USE_DESKTOP( \   IF_DESKTOP( \
357         "\n -c List changed files" \       "\n -c List changed files" \
358         "\n -v List all files" \       "\n -v List all files" \
359         "\n -f Hide errors" \       "\n -f Hide errors" \
360   )   )
361  #define chmod_example_usage \  #define chmod_example_usage \
362         "$ ls -l /tmp/foo\n" \         "$ ls -l /tmp/foo\n" \
# Line 239  Line 368 
368         "$ ls -l /tmp/foo\n" \         "$ ls -l /tmp/foo\n" \
369         "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"         "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
370    
371    #define chgrp_trivial_usage \
372           "[-RhLHP"IF_DESKTOP("cvf")"]... GROUP FILE..."
373    #define chgrp_full_usage "\n\n" \
374           "Change the group membership of each FILE to GROUP\n" \
375         "\nOptions:" \
376         "\n -R Recurse" \
377         "\n -h Affect symlinks instead of symlink targets" \
378         "\n -L Traverse all symlinks to directories" \
379         "\n -H Traverse symlinks on command line only" \
380         "\n -P Don't traverse symlinks (default)" \
381     IF_DESKTOP( \
382         "\n -c List changed files" \
383         "\n -v Verbose" \
384         "\n -f Hide errors" \
385     )
386    #define chgrp_example_usage \
387           "$ ls -l /tmp/foo\n" \
388           "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
389           "$ chgrp root /tmp/foo\n" \
390           "$ ls -l /tmp/foo\n" \
391           "-r--r--r--    1 andersen root            0 Apr 12 18:25 /tmp/foo\n"
392    
393  #define chown_trivial_usage \  #define chown_trivial_usage \
394         "[-Rh"USE_DESKTOP("cvf")"]...  OWNER[<.|:>[GROUP]] FILE..."         "[-RhLHP"IF_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..."
395  #define chown_full_usage \  #define chown_full_usage "\n\n" \
396         "Change the owner and/or group of each FILE to OWNER and/or GROUP" \         "Change the owner and/or group of each FILE to OWNER and/or GROUP\n" \
397         "\n\nOptions:" \       "\nOptions:" \
398         "\n -R Changes files and directories recursively" \       "\n -R Recurse" \
399         "\n -h Do not dereference symbolic links" \       "\n -h Affect symlinks instead of symlink targets" \
400   USE_DESKTOP( \       "\n -L Traverse all symlinks to directories" \
401         "\n -c List changed files" \       "\n -H Traverse symlinks on command line only" \
402         "\n -v List all files" \       "\n -P Don't traverse symlinks (default)" \
403         "\n -f Hide errors" \   IF_DESKTOP( \
404         "\n -c List changed files" \
405         "\n -v List all files" \
406         "\n -f Hide errors" \
407   )   )
408  #define chown_example_usage \  #define chown_example_usage \
409         "$ ls -l /tmp/foo\n" \         "$ ls -l /tmp/foo\n" \
# Line 262  Line 416 
416         "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"         "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
417    
418  #define chpst_trivial_usage \  #define chpst_trivial_usage \
419         "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \         "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" \
420         "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \         " [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" \
421         "[-p processes] [-f bytes] [-c bytes] prog args"         " [-p N] [-f BYTES] [-c BYTES] PROG ARGS"
422  #define chpst_full_usage \  #define chpst_full_usage "\n\n" \
423         "Change the process state and run specified program" \         "Change the process state and run PROG\n" \
424         "\n\nOptions:\n" \       "\nOptions:" \
425         " -u user[:grp] Set uid and gid\n" \       "\n -u USER[:GRP] Set uid and gid" \
426         " -U user[:grp] Set environment variables UID and GID\n" \       "\n -U USER[:GRP] Set $UID and $GID in environment" \
427         " -e dir Set environment variables as specified by files\n" \       "\n -e DIR Set environment variables as specified by files" \
428         " in the directory: file=1st_line_of_file\n" \       "\n in DIR: file=1st_line_of_file" \
429         " -/ dir Chroot to dir\n" \       "\n -/ DIR Chroot to DIR" \
430         " -n inc Add inc to nice value\n" \       "\n -n NICE Add NICE to nice value" \
431         " -m bytes Limit data segment, stack segment, locked physical pages,\n" \       "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES" \
432         " and total of all segment per process to bytes bytes each\n" \       "\n -d BYTES Limit data segment" \
433         " -d bytes Limit data segment\n" \       "\n -o N Limit number of open files per process" \
434         " -o n Limit the number of open file descriptors per process to n\n" \       "\n -p N Limit number of processes per uid" \
435         " -p n Limit number of processes per uid to n\n" \       "\n -f BYTES Limit output file sizes" \
436         " -f bytes Limit output file size to bytes bytes\n" \       "\n -c BYTES Limit core file size" \
437         " -c bytes Limit core file size to bytes bytes\n" \       "\n -v Verbose" \
438         " -v Verbose\n" \       "\n -P Create new process group" \
439         " -P Run prog in a new process group\n" \       "\n -0 Close stdin" \
440         " -0 Close standard input\n" \       "\n -1 Close stdout" \
441         " -1 Close standard output\n" \       "\n -2 Close stderr" \
442         " -2 Close standard error"  
443  #define setuidgid_trivial_usage \  #define setuidgid_trivial_usage \
444         "account prog args"         "USER PROG ARGS"
445  #define setuidgid_full_usage \  #define setuidgid_full_usage "\n\n" \
446         "Set uid and gid to account's uid and gid, removing all supplementary\n" \         "Set uid and gid to USER's uid and gid, removing all supplementary\n" \
447         "groups, then run prog"         "groups and run PROG"
448  #define envuidgid_trivial_usage \  #define envuidgid_trivial_usage \
449         "account prog args"         "USER PROG ARGS"
450  #define envuidgid_full_usage \  #define envuidgid_full_usage "\n\n" \
451         "Set $UID to account's uid and $GID to account's gid, then run prog"         "Set $UID to USER's uid and $GID to USER's gid and run PROG"
452  #define envdir_trivial_usage \  #define envdir_trivial_usage \
453         "dir prog args"         "DIR PROG ARGS"
454  #define envdir_full_usage \  #define envdir_full_usage "\n\n" \
455         "Set various environment variables as specified by files\n" \         "Set various environment variables as specified by files\n" \
456         "in the directory dir, then run prog"         "in the directory dir and run PROG"
457  #define softlimit_trivial_usage \  #define softlimit_trivial_usage \
458         "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \         "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" \
459         "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \         " [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" \
460         "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args"         " PROG ARGS"
461  #define softlimit_full_usage \  #define softlimit_full_usage "\n\n" \
462         "Set soft resource limits, then run prog" \         "Set soft resource limits, then run PROG\n" \
463         "\n\nOptions:\n" \       "\nOptions:" \
464         " -m n Same as -d n -s n -l n -a n\n" \       "\n -a BYTES Limit total size of all segments" \
465         " -d n Limit the data segment per process to n bytes\n" \       "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES" \
466         " -s n Limit the stack segment per process to n bytes\n" \       "\n -d BYTES Limit data segment" \
467         " -l n Limit the locked physical pages per process to n bytes\n" \       "\n -s BYTES Limit stack segment" \
468         " -a n Limit the total of all segments per process to n bytes\n" \       "\n -l BYTES Limit locked memory size" \
469         " -o n Limit  the number of open file descriptors per process to n\n" \       "\n -o N Limit number of open files per process" \
470         " -p n Limit the number of processes per uid to n\n" \       "\n -p N Limit number of processes per uid" \
471         "Options controlling file sizes:\n" \       "\nOptions controlling file sizes:" \
472         " -f n Limit output file sizes to n bytes\n" \       "\n -f BYTES Limit output file sizes" \
473         " -c n Limit core file sizes to n bytes\n" \       "\n -c BYTES Limit core file size" \
474         "Efficiency opts:\n" \       "\nEfficiency opts:" \
475         " -r n Limit the resident set size to n bytes. This limit is not\n" \       "\n -r BYTES Limit resident set size" \
476         " enforced unless physical memory is full\n" \       "\n -t N Limit CPU time, process receives" \
477         " -t n Limit the CPU time to n seconds. This limit is not enforced\n" \       "\n a SIGXCPU after N seconds" \
        " except that the process receives a SIGXCPU signal after n seconds\n" \  
        "\n" \  
        "Some options may have no effect on some operating systems\n" \  
        "n may be =, indicating that soft limit should be set equal to hard limit"  
478    
479  #define chroot_trivial_usage \  #define chroot_trivial_usage \
480         "NEWROOT [COMMAND...]"         "NEWROOT [PROG ARGS]"
481  #define chroot_full_usage \  #define chroot_full_usage "\n\n" \
482         "Run COMMAND with root directory set to NEWROOT"         "Run PROG with root directory set to NEWROOT"
483  #define chroot_example_usage \  #define chroot_example_usage \
484         "$ ls -l /bin/ls\n" \         "$ ls -l /bin/ls\n" \
485         "lrwxrwxrwx    1 root     root          12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \         "lrwxrwxrwx    1 root     root          12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
# Line 340  Line 490 
490    
491  #define chvt_trivial_usage \  #define chvt_trivial_usage \
492         "N"         "N"
493  #define chvt_full_usage \  #define chvt_full_usage "\n\n" \
494         "Change the foreground virtual terminal to /dev/ttyN"         "Change the foreground virtual terminal to /dev/ttyN"
495    
496  #define cksum_trivial_usage \  #define cksum_trivial_usage \
497         "FILES..."         "FILES..."
498  #define cksum_full_usage \  #define cksum_full_usage "\n\n" \
499         "Calculate the CRC32 checksums of FILES"         "Calculate the CRC32 checksums of FILES"
500    
501  #define clear_trivial_usage \  #define clear_trivial_usage \
502         ""         ""
503  #define clear_full_usage \  #define clear_full_usage "\n\n" \
504         "Clear screen"         "Clear screen"
505    
506  #define cmp_trivial_usage \  #define cmp_trivial_usage \
507         "[-l] [-s] FILE1 [FILE2]"         "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]") "]]"
508  #define cmp_full_usage \  #define cmp_full_usage "\n\n" \
509         "Compares FILE1 vs stdin if FILE2 is not specified" \         "Compares FILE1 vs stdin if FILE2 is not specified\n" \
510         "\n\nOptions:\n" \       "\nOptions:" \
511         " -l Write the byte numbers (decimal) and values (octal)\n" \       "\n -l Write the byte numbers (decimal) and values (octal)" \
512         " for all differing bytes\n" \       "\n for all differing bytes" \
513         " -s Quiet mode - do not print"       "\n -s Quiet" \
514    
515  #define comm_trivial_usage \  #define comm_trivial_usage \
516         "[-123] FILE1 FILE2"         "[-123] FILE1 FILE2"
517  #define comm_full_usage \  #define comm_full_usage "\n\n" \
518         "Compare FILE1 to FILE2, or to stdin if - is specified" \         "Compare FILE1 to FILE2, or to stdin if - is specified\n" \
519         "\n\nOptions:\n" \       "\nOptions:" \
520         " -1 Suppress lines unique to FILE1\n" \       "\n -1 Suppress lines unique to FILE1" \
521         " -2 Suppress lines unique to FILE2\n" \       "\n -2 Suppress lines unique to FILE2" \
522         " -3 Suppress lines common to both files"       "\n -3 Suppress lines common to both files" \
523    
524  #define bbconfig_trivial_usage \  #define bbconfig_trivial_usage \
525         ""         ""
526  #define bbconfig_full_usage \  #define bbconfig_full_usage "\n\n" \
527         "Print the config file which built busybox"         "Print the config file which built busybox"
528    
529  #define bbsh_trivial_usage \  #define chrt_trivial_usage \
530         "[FILE]...\n" \         "[OPTIONS] [PRIO] [PID | PROG ARGS]"
531         "or: bbsh -c command [args]..."  #define chrt_full_usage "\n\n" \
532  #define bbsh_full_usage \         "Manipulate real-time attributes of a process\n" \
533         "The bbsh shell (command interpreter)"       "\nOptions:" \
534         "\n -p Operate on PID" \
535         "\n -r Set SCHED_RR scheduling" \
536         "\n -f Set SCHED_FIFO scheduling" \
537         "\n -o Set SCHED_OTHER scheduling" \
538         "\n -m Show min and max priorities" \
539    
540    #define chrt_example_usage \
541           "$ chrt -r 4 sleep 900; x=$!\n" \
542           "$ chrt -f -p 3 $x\n" \
543           "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
544    
545  #define cp_trivial_usage \  #define cp_trivial_usage \
546         "[OPTION]... SOURCE DEST"         "[OPTIONS] SOURCE DEST"
547  #define cp_full_usage \  #define cp_full_usage "\n\n" \
548         "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY" \         "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY\n" \
549         "\n\nOptions:\n" \       "\nOptions:" \
550         " -a Same as -dpR\n" \       "\n -a Same as -dpR" \
551         " -d,-P Preserve links\n" \   IF_SELINUX( \
552         " -H,-L Dereference all symlinks (implied by default)\n" \       "\n -c Preserve security context" \
553         " -p Preserve file attributes if possible\n" \   ) \
554         " -f Force, overwrite\n" \       "\n -R,-r Recurse" \
555         " -i Interactive, prompt before overwrite\n" \       "\n -d,-P Preserve symlinks (default if -R)" \
556         " -R,-r Copy directories recursively\n" \       "\n -L Follow all symlinks" \
557         " -l,-s Create (sym)links"       "\n -H Follow symlinks on command line" \
558         "\n -p Preserve file attributes if possible" \
559         "\n -f Force overwrite" \
560         "\n -i Prompt before overwrite" \
561         "\n -l,-s Create (sym)links" \
562    
563  #define cpio_trivial_usage \  #define cpio_trivial_usage \
564         "-[dimtuv][F cpiofile]"         "[-dmvu] [-F FILE]" IF_FEATURE_CPIO_O(" [-H newc]") \
565  #define cpio_full_usage \         " [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]")
566         "Extract or list files from a cpio archive\n" \  #define cpio_full_usage "\n\n" \
567         "Main operation mode:\n" \         "Extract or list files from a cpio archive" \
568         " d Make leading directories\n" \   IF_FEATURE_CPIO_O(", or" \
569         " i Extract\n" \       "\ncreate an archive" IF_FEATURE_CPIO_P(" (-o) or copy files (-p)") \
570         " m Preserve mtime\n" \   " using file list on stdin" \
571         " t List\n" \   ) \
572         " v Verbose\n" \       "\n" \
573         " u Unconditional overwrite\n" \       "\nMain operation mode:" \
574         " F Input from file"       "\n -t List" \
575         "\n -i Extract" \
576     IF_FEATURE_CPIO_O( \
577         "\n -o Create (requires -H newc)" \
578     ) \
579     IF_FEATURE_CPIO_P( \
580         "\n -p DIR Copy files to DIR" \
581     ) \
582         "\nOptions:" \
583         "\n -d Make leading directories" \
584         "\n -m Preserve mtime" \
585         "\n -v Verbose" \
586         "\n -u Overwrite" \
587         "\n -F FILE Input (-t,-i,-p) or output (-o) file" \
588     IF_FEATURE_CPIO_O( \
589         "\n -H newc Archive format" \
590     ) \
591    
592  #define crond_trivial_usage \  #define crond_trivial_usage \
593         "-d[#] -c <crondir> -f -b"         "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
594  #define crond_full_usage \  #define crond_full_usage "\n\n" \
595         " -d [#] -l [#] -S -L logfile -f -b -c dir\n" \         " -f Foreground" \
596         " -d num Debug level\n" \       "\n -b Background (default)" \
597         " -l num Log level (8 - default)\n" \       "\n -S Log to syslog (default)" \
598         " -S Log to syslogd (default)\n" \       "\n -l Set log level. 0 is the most verbose, default 8" \
599         " -L file Log to file\n" \   IF_FEATURE_CROND_D( \
600         " -f Run in foreground\n" \       "\n -d Set log level, log to stderr" \
601         " -b Run in background (default)\n" \   ) \
602         " -c dir Working dir"       "\n -L Log to file" \
603         "\n -c Working dir" \
604    
605  #define crontab_trivial_usage \  #define crontab_trivial_usage \
606         "[-c dir] {file|-}|[-u|-l|-e|-d user]"         "[-c DIR] [-u USER] [-ler]|[FILE]"
607  #define crontab_full_usage \  #define crontab_full_usage "\n\n" \
608         " File <opts>  replace crontab from file\n" \         " -c Crontab directory" \
609         " -    <opts>  replace crontab from stdin\n" \       "\n -u User" \
610         " -u user      specify user\n" \       "\n -l List crontab" \
611         " -l [user]    list crontab for user\n" \       "\n -e Edit crontab" \
612         " -e [user]    edit crontab for user\n" \       "\n -r Delete crontab" \
613         " -d [user]    delete crontab for user\n" \       "\n FILE Replace crontab by FILE ('-': stdin)" \
614         " -c dir       specify crontab directory"  
615    #define cryptpw_trivial_usage \
616           "[OPTIONS] [PASSWORD] [SALT]"
617    /* We do support -s, we just don't mention it */
618    #define cryptpw_full_usage "\n\n" \
619           "Crypt the PASSWORD using crypt(3)\n" \
620         "\nOptions:" \
621     IF_LONG_OPTS( \
622         "\n -P,--password-fd=N Read password from fd N" \
623    /*   "\n -s,--stdin Use stdin; like -P0" */ \
624         "\n -m,--method=TYPE Encryption method TYPE" \
625         "\n -S,--salt=SALT" \
626     ) \
627     IF_NOT_LONG_OPTS( \
628         "\n -P N Read password from fd N" \
629    /*   "\n -s Use stdin; like -P0" */ \
630         "\n -m TYPE Encryption method TYPE" \
631         "\n -S SALT" \
632     ) \
633    
634    /* mkpasswd is an alias to cryptpw */
635    
636    #define mkpasswd_trivial_usage \
637           "[OPTIONS] [PASSWORD] [SALT]"
638    /* We do support -s, we just don't mention it */
639    #define mkpasswd_full_usage "\n\n" \
640           "Crypt the PASSWORD using crypt(3)\n" \
641         "\nOptions:" \
642     IF_LONG_OPTS( \
643         "\n -P,--password-fd=N Read password from fd N" \
644    /*   "\n -s,--stdin Use stdin; like -P0" */ \
645         "\n -m,--method=TYPE Encryption method TYPE" \
646         "\n -S,--salt=SALT" \
647     ) \
648     IF_NOT_LONG_OPTS( \
649         "\n -P N Read password from fd N" \
650    /*   "\n -s Use stdin; like -P0" */ \
651         "\n -m TYPE Encryption method TYPE" \
652         "\n -S SALT" \
653     ) \
654    
655    #define cttyhack_trivial_usage NOUSAGE_STR
656    #define cttyhack_full_usage ""
657    
658  #define cut_trivial_usage \  #define cut_trivial_usage \
659         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
660  #define cut_full_usage \  #define cut_full_usage "\n\n" \
661         "Print selected fields from each input FILE to standard output" \         "Print selected fields from each input FILE to stdout\n" \
662         "\n\nOptions:\n" \       "\nOptions:" \
663         " -b LIST Output only bytes from LIST\n" \       "\n -b LIST Output only bytes from LIST" \
664         " -c LIST Output only characters from LIST\n" \       "\n -c LIST Output only characters from LIST" \
665         " -d CHAR Use CHAR instead of tab as the field delimiter\n" \       "\n -d CHAR Use CHAR instead of tab as the field delimiter" \
666         " -s Output only the lines containing delimiter\n" \       "\n -s Output only the lines containing delimiter" \
667         " -f N Print only these fields\n" \       "\n -f N Print only these fields" \
668         " -n Ignored"       "\n -n Ignored" \
669    
670  #define cut_example_usage \  #define cut_example_usage \
671         "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \         "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
672         "Hello\n" \         "Hello\n" \
# Line 451  Line 674 
674         "world\n"         "world\n"
675    
676  #define date_trivial_usage \  #define date_trivial_usage \
677         "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"         "[OPTIONS] [+FMT] [TIME]"
678  #define date_full_usage \  #define date_full_usage "\n\n" \
679         "Display current time in the given FORMAT, or set system date" \         "Display time (using +FMT), or set time\n" \
680         "\n\nOptions:\n" \       "\nOptions:" \
681         " -R Outputs RFC-822 compliant date string\n" \   IF_NOT_LONG_OPTS( \
682         " -d STRING Displays time described by STRING, not 'now'\n" \       "\n [-s] TIME Set time to TIME" \
683   USE_FEATURE_DATE_ISOFMT( \       "\n -u Work in UTC (don't convert to local time)" \
684         " -I[TIMESPEC] Outputs an ISO-8601 compliant date/time string\n" \       "\n -R Output RFC-2822 compliant date string" \
685         " TIMESPEC='date' (or missing) for date only,\n" \   ) IF_LONG_OPTS( \
686         " 'hours', 'minutes', or 'seconds' for date and,\n" \       "\n [-s,--set] TIME Set time to TIME" \
687         " time to the indicated precision\n" \       "\n -u,--utc Work in UTC (don't convert to local time)" \
688         " -D hint Use 'hint' as date format, via strptime()\n" \       "\n -R,--rfc-2822 Output RFC-2822 compliant date string" \
689   ) \   ) \
690         " -s Sets time described by STRING\n" \   IF_FEATURE_DATE_ISOFMT( \
691         " -r FILE Displays the last modification time of FILE\n" \       "\n -I[SPEC] Output ISO-8601 compliant date string" \
692         " -u Prints or sets Coordinated Universal Time"       "\n SPEC='date' (default) for date only," \
693         "\n 'hours', 'minutes', or 'seconds' for date and" \
694         "\n time to the indicated precision" \
695     ) IF_NOT_LONG_OPTS( \
696         "\n -r FILE Display last modification time of FILE" \
697         "\n -d TIME Display TIME, not 'now'" \
698     ) IF_LONG_OPTS( \
699         "\n -r,--reference FILE Display last modification time of FILE" \
700         "\n -d,--date TIME Display TIME, not 'now'" \
701     ) \
702     IF_FEATURE_DATE_ISOFMT( \
703         "\n -D FMT Use FMT for -d TIME conversion" \
704     ) \
705         "\n" \
706         "\nRecognized TIME formats:" \
707         "\n hh:mm[:ss]" \
708         "\n [YYYY.]MM.DD-hh:mm[:ss]" \
709         "\n YYYY-MM-DD hh:mm[:ss]" \
710         "\n [[[[[YY]YY]MM]DD]hh]mm[.ss]" \
711    
712  #define date_example_usage \  #define date_example_usage \
713         "$ date\n" \         "$ date\n" \
714         "Wed Apr 12 18:52:41 MDT 2000\n"         "Wed Apr 12 18:52:41 MDT 2000\n"
715    
716  #define dc_trivial_usage \  #define dc_trivial_usage \
717         "expression ..."         "expression..."
718  #define dc_full_usage \  #define dc_full_usage "\n\n" \
719         "This is a Tiny RPN calculator that understands the\n" \         "Tiny RPN calculator. Operations:\n" \
720         "following operations: +, add, -, sub, *, mul, /, div, %, mod, " \         "+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,\n" \
721         "**, exp, and, or, not, eor.\n" \         "p - print top of the stack (without altering the stack),\n" \
722         "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16." \         "f - print entire stack, o - pop the value and set output radix\n" \
723         "\n\nOptions:\n" \         "(value must be 10 or 16).\n" \
724         "p - Prints the value on the top of the stack, without altering the stack\n" \         "Examples: 'dc 2 2 add' -> 4, 'dc 8 8 * 2 2 + /' -> 16\n" \
725         "f - Prints the entire contents of the stack without altering anything\n" \  
        "o - Pops the value off the top of the stack and uses it to set the output radix\n" \  
        "    Only 10 and 16 are supported"  
726  #define dc_example_usage \  #define dc_example_usage \
727         "$ dc 2 2 + p\n" \         "$ dc 2 2 + p\n" \
728         "4\n" \         "4\n" \
# Line 496  Line 736 
736         "64\n"         "64\n"
737    
738  #define dd_trivial_usage \  #define dd_trivial_usage \
739         "[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \         "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
740         "  [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync]")         " [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
741  #define dd_full_usage \  #define dd_full_usage "\n\n" \
742         "Copy a file with converting and formatting" \         "Copy a file with converting and formatting\n" \
743         "\n\nOptions:\n" \       "\nOptions:" \
744         " if=FILE Read from FILE instead of stdin\n" \       "\n if=FILE Read from FILE instead of stdin" \
745         " of=FILE Write to FILE instead of stdout\n" \       "\n of=FILE Write to FILE instead of stdout" \
746         " bs=N Read and write N bytes at a time\n" \       "\n bs=N Read and write N bytes at a time" \
747   USE_FEATURE_DD_IBS_OBS( \   IF_FEATURE_DD_IBS_OBS( \
748         " ibs=N Read N bytes at a time\n") \       "\n ibs=N Read N bytes at a time" \
749   USE_FEATURE_DD_IBS_OBS( \   ) \
750         " obs=N Write N bytes at a time\n") \   IF_FEATURE_DD_IBS_OBS( \
751         " count=N Copy only N input blocks\n" \       "\n obs=N Write N bytes at a time" \
752         " skip=N Skip N input blocks\n" \   ) \
753         " seek=N Skip N output blocks\n" \       "\n count=N Copy only N input blocks" \
754   USE_FEATURE_DD_IBS_OBS( \       "\n skip=N Skip N input blocks" \
755         " conv=notrunc Don't truncate output file\n" \       "\n seek=N Skip N output blocks" \
756         " conv=noerror Continue after read errors\n" \   IF_FEATURE_DD_IBS_OBS( \
757         " conv=sync Pad blocks with zeros\n") \       "\n conv=notrunc Don't truncate output file" \
758         "\n" \       "\n conv=noerror Continue after read errors" \
759         "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \       "\n conv=sync Pad blocks with zeros" \
760         "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)"       "\n conv=fsync Physically write data out before finishing" \
761     ) \
762         "\n" \
763         "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024)," \
764         "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" \
765    
766  #define dd_example_usage \  #define dd_example_usage \
767         "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \         "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
768         "4+0 records in\n" \         "4+0 records in\n" \
# Line 525  Line 770 
770    
771  #define deallocvt_trivial_usage \  #define deallocvt_trivial_usage \
772         "[N]"         "[N]"
773  #define deallocvt_full_usage \  #define deallocvt_full_usage "\n\n" \
774         "Deallocate unused virtual terminal /dev/ttyN"         "Deallocate unused virtual terminal /dev/ttyN"
775    
776  #define delgroup_trivial_usage \  #define delgroup_trivial_usage \
777         "GROUP"   IF_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP"
778  #define delgroup_full_usage \  #define delgroup_full_usage "\n\n" \
779         "Delete group GROUP from the system"         "Delete group GROUP from the system" \
780     IF_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP")
781    
782  #define deluser_trivial_usage \  #define deluser_trivial_usage \
783         "USER"         "USER"
784  #define deluser_full_usage \  #define deluser_full_usage "\n\n" \
785         "Delete user USER from the system"         "Delete USER from the system"
786    
787    #define depmod_trivial_usage NOUSAGE_STR
788    #define depmod_full_usage ""
789    
790    #define devmem_trivial_usage \
791     "ADDRESS [WIDTH [VALUE]]"
792    
793    #define devmem_full_usage "\n\n" \
794           "Read/write from physical address\n" \
795         "\n ADDRESS Address to act upon" \
796         "\n WIDTH Width (8/16/...)" \
797         "\n VALUE Data to be written" \
798    
799  #define devfsd_trivial_usage \  #define devfsd_trivial_usage \
800         "mntpnt [-v]" \         "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]")
801   USE_DEVFSD_FG_NP("[-fg][-np]" )  #define devfsd_full_usage "\n\n" \
802  #define devfsd_full_usage \         "Manage devfs permissions and old device name symlinks\n" \
803         "Manage devfs permissions and old device name symlinks" \       "\nOptions:" \
804         "\n\nOptions:" \       "\n mntpnt The mount point where devfs is mounted" \
805         "\n mntpnt The mount point where devfs is mounted" \       "\n -v Print the protocol version numbers for devfsd" \
806         "\n -v Print the protocol version numbers for devfsd" \       "\n and the kernel-side protocol version and exit" \
807         "\n and the kernel-side protocol version and exits" \   IF_DEVFSD_FG_NP( \
808   USE_DEVFSD_FG_NP( \       "\n -fg Run in foreground" \
809         "\n -fg Run the daemon in the foreground" \       "\n -np Exit after parsing the configuration file" \
810         "\n -np Exit after parsing the configuration file" \       "\n and processing synthetic REGISTER events," \
811         "\n and processing synthetic REGISTER events," \       "\n don't poll for events" \
812         "\n do not poll for events")   )
813    
814  #define df_trivial_usage \  #define df_trivial_usage \
815         "[-" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILESYSTEM ...]"   "[-Pk" \
816  #define df_full_usage \   IF_FEATURE_HUMAN_READABLE("mh") \
817         "Print the filesystem space used and space available" \   IF_FEATURE_DF_FANCY("ai] [-B SIZE") \
818         "\n\nOptions:\n" \   "] [FILESYSTEM]..."
819   USE_FEATURE_HUMAN_READABLE( \  #define df_full_usage "\n\n" \
820         "\n -h Print sizes in human readable format (e.g., 1K 243M 2G )\n" \         "Print filesystem usage statistics\n" \
821         " -m Print sizes in megabytes\n" \       "\nOptions:" \
822         " -k Print sizes in kilobytes(default)") \       "\n -P POSIX output format" \
823   SKIP_FEATURE_HUMAN_READABLE( \       "\n -k 1024-byte blocks (default)" \
824         "\n -k Ignored")   IF_FEATURE_HUMAN_READABLE( \
825         "\n -m 1M-byte blocks" \
826         "\n -h Human readable (e.g. 1K 243M 2G)" \
827     ) \
828     IF_FEATURE_DF_FANCY( \
829         "\n -a Show all filesystems" \
830         "\n -i Inodes" \
831         "\n -B SIZE Blocksize" \
832     ) \
833    
834  #define df_example_usage \  #define df_example_usage \
835         "$ df\n" \         "$ df\n" \
836         "Filesystem           1k-blocks      Used Available Use% Mounted on\n" \         "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
837         "/dev/sda3              8690864   8553540    137324  98% /\n" \         "/dev/sda3              8690864   8553540    137324  98% /\n" \
838         "/dev/sda1                64216     36364     27852  57% /boot\n" \         "/dev/sda1                64216     36364     27852  57% /boot\n" \
839         "$ df /dev/sda3\n" \         "$ df /dev/sda3\n" \
840         "Filesystem           1k-blocks      Used Available Use% Mounted on\n" \         "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
841         "/dev/sda3              8690864   8553540    137324  98% /\n"         "/dev/sda3              8690864   8553540    137324  98% /\n" \
842           "$ POSIXLY_CORRECT=sure df /dev/sda3\n" \
843  #define dhcprelay_trivial_usage \         "Filesystem         512B-blocks      Used Available Use% Mounted on\n" \
844         "[client_device_list] [server_device]"         "/dev/sda3             17381728  17107080    274648  98% /\n" \
845  #define dhcprelay_full_usage \         "$ POSIXLY_CORRECT=yep df -P /dev/sda3\n" \
846         "Relay dhcp requests from client devices to server device"         "Filesystem          512-blocks      Used Available Capacity Mounted on\n" \
847           "/dev/sda3             17381728  17107080    274648      98% /\n"
848    
849  #define dhcprelay_trivial_usage \  #define dhcprelay_trivial_usage \
850         "[client_device_list] [server_device]"         "CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]"
851  #define dhcprelay_full_usage \  #define dhcprelay_full_usage "\n\n" \
852         "Relay dhcp requests from client devices to server device"         "Relay DHCP requests between clients and server" \
853    
854  #define diff_trivial_usage \  #define diff_trivial_usage \
855         "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"         "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
856  #define diff_full_usage \  #define diff_full_usage "\n\n" \
857         "Compare files line by line and output the differences between them.\n" \         "Compare files line by line and output the differences between them.\n" \
858         "This diff implementation only supports unified diffs." \         "This implementation supports unified diffs only.\n" \
859         "\n\nOptions:\n" \       "\nOptions:" \
860         " -a Treat all files as text\n" \       "\n -a Treat all files as text" \
861         " -b Ignore changes in the amount of whitespace\n" \       "\n -b Ignore changes in the amount of whitespace" \
862         " -d Try hard to find a smaller set of changes\n" \       "\n -B Ignore changes whose lines are all blank" \
863         " -i Ignore case differences\n" \       "\n -d Try hard to find a smaller set of changes" \
864         " -L Use LABEL instead of the filename in the unified header\n" \       "\n -i Ignore case differences" \
865         " -N Treat absent files as empty\n" \       "\n -L Use LABEL instead of the filename in the unified header" \
866         " -q Output only whether files differ\n" \       "\n -N Treat absent files as empty" \
867         " -r Recursively compare subdirectories\n" \       "\n -q Output only whether files differ" \
868         " -S Start with FILE when comparing directories\n" \       "\n -r Recurse" \
869         " -T Make tabs line up by prefixing a tab when necessary\n" \       "\n -S Start with FILE when comparing directories" \
870         " -s Report when two files are the same\n" \       "\n -T Make tabs line up by prefixing a tab when necessary" \
871         " -t Expand tabs to spaces in output\n" \       "\n -s Report when two files are the same" \
872         " -U Output LINES lines of context\n" \       "\n -t Expand tabs to spaces in output" \
873         " -w Ignore all whitespace"       "\n -U Output LINES lines of context" \
874         "\n -w Ignore all whitespace" \
875    
876  #define dirname_trivial_usage \  #define dirname_trivial_usage \
877         "FILENAME"         "FILENAME"
878  #define dirname_full_usage \  #define dirname_full_usage "\n\n" \
879         "Strip non-directory suffix from FILENAME"         "Strip non-directory suffix from FILENAME"
880  #define dirname_example_usage \  #define dirname_example_usage \
881         "$ dirname /tmp/foo\n" \         "$ dirname /tmp/foo\n" \
# Line 616  Line 885 
885    
886  #define dmesg_trivial_usage \  #define dmesg_trivial_usage \
887         "[-c] [-n LEVEL] [-s SIZE]"         "[-c] [-n LEVEL] [-s SIZE]"
888  #define dmesg_full_usage \  #define dmesg_full_usage "\n\n" \
889         "Print or control the kernel ring buffer" \         "Print or control the kernel ring buffer\n" \
890         "\n\nOptions:\n" \       "\nOptions:" \
891         " -c Clears the ring buffer's contents after printing\n" \       "\n -c Clear ring buffer after printing" \
892         " -n LEVEL Sets console logging level\n" \       "\n -n LEVEL Set console logging level" \
893         " -s SIZE Use a buffer of size SIZE"       "\n -s SIZE Buffer size" \
894    
895  #define dnsd_trivial_usage \  #define dnsd_trivial_usage \
896         "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]"         "[-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]"
897  #define dnsd_full_usage \  #define dnsd_full_usage "\n\n" \
898         "Small and static DNS server daemon" \         "Small static DNS server daemon\n" \
899         "\n\nOptions:\n" \       "\nOptions:" \
900         " -c Config filename\n" \       "\n -c FILE Config file" \
901         " -t TTL in seconds\n" \       "\n -t SEC TTL" \
902         " -p Listening port\n" \       "\n -p PORT Listen on PORT" \
903         " -i Listening iface ip (default all)\n" \       "\n -i ADDR Listen on ADDR" \
904         " -d Daemonize"       "\n -d Daemonize" \
905         "\n -v Verbose" \
906         "\n -s Send successful replies only. Use this if you want" \
907         "\n to use /etc/resolv.conf with two nameserver lines:" \
908         "\n nameserver DNSD_SERVER" \
909         "\n nameserver NORNAL_DNS_SERVER" \
910    
911  #define dos2unix_trivial_usage \  #define dos2unix_trivial_usage \
912         "[option] [FILE]"         "[OPTIONS] [FILE]"
913  #define dos2unix_full_usage \  #define dos2unix_full_usage "\n\n" \
914         "Convert FILE from dos format to unix format.  When no option\n" \         "Convert FILE in-place from DOS to Unix format.\n" \
915         "is given, the input is converted to the opposite output format.\n" \         "When no file is given, use stdin/stdout.\n" \
916         "When no file is given, use stdin for input and stdout for output." \       "\nOptions:" \
917         "\n\nOptions:\n" \       "\n -u dos2unix" \
918         " -u Output will be in UNIX format\n" \       "\n -d unix2dos" \
919         " -d Output will be in DOS format"  
920    #define unix2dos_trivial_usage \
921           "[OPTIONS] [FILE]"
922    #define unix2dos_full_usage "\n\n" \
923           "Convert FILE in-place from Unix to DOS format.\n" \
924           "When no file is given, use stdin/stdout.\n" \
925         "\nOptions:" \
926         "\n -u dos2unix" \
927         "\n -d unix2dos" \
928    
929  #define dpkg_trivial_usage \  #define dpkg_trivial_usage \
930         "[-ilCPru] [-F option] package_name"         "[-ilCPru] [-F OPT] PACKAGE"
931  #define dpkg_full_usage \  #define dpkg_full_usage "\n\n" \
932         "Install, remove and manage Debian packages" \         "Install, remove and manage Debian packages\n" \
933         "\n\nOptions:\n" \       "\nOptions:" \
934         " -i Install the package\n" \       "\n -i Install the package" \
935         " -l List of installed packages\n" \       "\n -l List of installed packages" \
936         " -C Configure an unpackaged package\n" \       "\n -C Configure an unpackaged package" \
937         " -F depends Ignore dependency problems\n" \       "\n -F depends Ignore dependency problems" \
938         " -P Purge all files of a package\n" \       "\n -P Purge all files of a package" \
939         " -r Remove all but the configuration files for a package\n" \       "\n -r Remove all but the configuration files for a package" \
940         " -u Unpack a package, but don't configure it"       "\n -u Unpack a package, but don't configure it" \
941    
942  #define dpkg_deb_trivial_usage \  #define dpkg_deb_trivial_usage \
943         "[-cefxX] FILE [argument]"         "[-cefxX] FILE [argument]"
944  #define dpkg_deb_full_usage \  #define dpkg_deb_full_usage "\n\n" \
945         "Perform actions on Debian packages (.debs)" \         "Perform actions on Debian packages (.debs)\n" \
946         "\n\nOptions:\n" \       "\nOptions:" \
947         " -c List contents of filesystem tree\n" \       "\n -c List contents of filesystem tree" \
948         " -e Extract control files to [argument] directory\n" \       "\n -e Extract control files to [argument] directory" \
949         " -f Display control field name starting with [argument]\n" \       "\n -f Display control field name starting with [argument]" \
950         " -x Extract packages filesystem tree to directory\n" \       "\n -x Extract packages filesystem tree to directory" \
951         " -X Verbose extract"       "\n -X Verbose extract" \
952    
953  #define dpkg_deb_example_usage \  #define dpkg_deb_example_usage \
954         "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"         "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
955    
956  #define du_trivial_usage \  #define du_trivial_usage \
957         "[-aHLdclsx" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."         "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
958  #define du_full_usage \  #define du_full_usage "\n\n" \
959         "Summarize disk space used for each FILE and/or directory.\n" \         "Summarize disk space used for each FILE and/or directory.\n" \
960         "Disk space is printed in units of " \         "Disk space is printed in units of " \
961   USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \   IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
962   SKIP_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \   IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
963         " bytes." \         " bytes.\n" \
964         "\n\nOptions:\n" \       "\nOptions:" \
965         " -a Show sizes of files in addition to directories\n" \       "\n -a Show file sizes too" \
966         " -H Follow symbolic links that are FILE command line args\n" \       "\n -L Follow all symlinks" \
967         " -L Follow all symbolic links encountered\n" \       "\n -H Follow symlinks on command line" \
968         " -d N Limit output to directories (and files with -a) of depth < N\n" \       "\n -d N Limit output to directories (and files with -a) of depth < N" \
969         " -c Output a grand total\n" \       "\n -c Show grand total" \
970         " -l Count sizes many times if hard linked\n" \       "\n -l Count sizes many times if hard linked" \
971         " -s Display only a total for each argument\n" \       "\n -s Display only a total for each argument" \
972         " -x Skip directories on different filesystems\n" \       "\n -x Skip directories on different filesystems" \
973   USE_FEATURE_HUMAN_READABLE( \   IF_FEATURE_HUMAN_READABLE( \
974         " -h Print sizes in human readable format (e.g., 1K 243M 2G )\n" \       "\n -h Sizes in human readable format (e.g., 1K 243M 2G )" \
975         " -m Print sizes in megabytes\n" \       "\n -m Sizes in megabytes" \
976   ) \   ) \
977         " -k Print sizes in kilobytes" \       "\n -k Sizes in kilobytes" \
978   USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("(default)")   IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(" (default)") \
979    
980  #define du_example_usage \  #define du_example_usage \
981         "$ du\n" \         "$ du\n" \
982         "16      ./CVS\n" \         "16      ./CVS\n" \
# Line 708  Line 992 
992    
993  #define dumpkmap_trivial_usage \  #define dumpkmap_trivial_usage \
994         "> keymap"         "> keymap"
995  #define dumpkmap_full_usage \  #define dumpkmap_full_usage "\n\n" \
996         "Print out a binary keyboard translation table to standard output"         "Print a binary keyboard translation table to stdout"
997  #define dumpkmap_example_usage \  #define dumpkmap_example_usage \
998         "$ dumpkmap > keymap\n"         "$ dumpkmap > keymap\n"
999    
1000  #define dumpleases_trivial_usage \  #define dumpleases_trivial_usage \
1001         "[-r|-a] [-f LEASEFILE]"         "[-r|-a] [-f LEASEFILE]"
1002  #define dumpleases_full_usage \  #define dumpleases_full_usage "\n\n" \
1003         "Display DHCP leases granted by udhcpd" \         "Display DHCP leases granted by udhcpd\n" \
1004         "\n\nOptions:\n" \       "\nOptions:" \
1005         " -f, --file=FILENAME Leases file to load\n" \   IF_LONG_OPTS( \
1006         " -r, --remaining Interpret lease times as time remaining\n" \       "\n -f,--file=FILE Leases file to load" \
1007         " -a, --absolute Interpret lease times as expire time"       "\n -r,--remaining Interpret lease times as time remaining" \
1008         "\n -a,--absolute Interpret lease times as expire time" \
1009     ) \
1010     IF_NOT_LONG_OPTS( \
1011         "\n -f FILE Leases file to load" \
1012         "\n -r Interpret lease times as time remaining" \
1013         "\n -a Interpret lease times as expire time" \
1014     )
1015    
1016    /*
1017  #define e2fsck_trivial_usage \  #define e2fsck_trivial_usage \
1018         "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \         "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
1019         "[-I inode_buffer_blocks] [-P process_inode_size] " \         "[-I inode_buffer_blocks] [-P process_inode_size] " \
1020         "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \         "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
1021         "[-E extended-options] device"         "[-E extended-options] device"
1022  #define e2fsck_full_usage \  #define e2fsck_full_usage "\n\n" \
1023         "Check ext2/ext3 file system" \         "Check ext2/ext3 file system\n" \
1024         "\n\nOptions:\n" \       "\nOptions:" \
1025         " -p Automatic repair (no questions)\n" \       "\n -p Automatic repair (no questions)" \
1026         " -n Make no changes to the filesystem\n" \       "\n -n Make no changes to the filesystem" \
1027         " -y Assume 'yes' to all questions\n" \       "\n -y Assume 'yes' to all questions" \
1028         " -c Check for bad blocks and add them to the badblock list\n" \       "\n -c Check for bad blocks and add them to the badblock list" \
1029         " -f Force checking even if filesystem is marked clean\n" \       "\n -f Force checking even if filesystem is marked clean" \
1030         " -v Be verbose\n" \       "\n -v Verbose" \
1031         " -b superblock Use alternative superblock\n" \       "\n -b superblock Use alternative superblock" \
1032         " -B blocksize Force blocksize when looking for superblock\n" \       "\n -B blocksize Force blocksize when looking for superblock" \
1033         " -j journal Set location of the external journal\n" \       "\n -j journal Set location of the external journal" \
1034         " -l file Add to badblocks list\n" \       "\n -l file Add to badblocks list" \
1035         " -L file Set badblocks list"       "\n -L file Set badblocks list" \
1036    */
1037    
1038  #define echo_trivial_usage \  #define echo_trivial_usage \
1039   USE_FEATURE_FANCY_ECHO("[-neE] ") "[ARG ...]"   IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..."
1040  #define echo_full_usage \  #define echo_full_usage "\n\n" \
1041         "Print the specified ARGs to stdout" \         "Print the specified ARGs to stdout" \
1042   USE_FEATURE_FANCY_ECHO( \   IF_FEATURE_FANCY_ECHO( "\n" \
1043         "\n\nOptions:\n" \       "\nOptions:" \
1044         " -n Suppress trailing newline\n" \       "\n -n Suppress trailing newline" \
1045         " -e Interpret backslash-escaped characters (i.e., \\t=tab)\n" \       "\n -e Interpret backslash-escaped characters (i.e., \\t=tab)" \
1046         " -E Disable interpretation of backslash-escaped characters" \       "\n -E Disable interpretation of backslash-escaped characters" \
1047   )   )
1048  #define echo_example_usage \  #define echo_example_usage \
1049         "$ echo \"Erik is cool\"\n" \         "$ echo \"Erik is cool\"\n" \
1050         "Erik is cool\n" \         "Erik is cool\n" \
1051   USE_FEATURE_FANCY_ECHO("$  echo -e \"Erik\\nis\\ncool\"\n" \   IF_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \
1052         "Erik\n" \         "Erik\n" \
1053         "is\n" \         "is\n" \
1054         "cool\n" \         "cool\n" \
# Line 764  Line 1057 
1057    
1058  #define eject_trivial_usage \  #define eject_trivial_usage \
1059         "[-t] [-T] [DEVICE]"         "[-t] [-T] [DEVICE]"
1060  #define eject_full_usage \  #define eject_full_usage "\n\n" \
1061         "Eject specified DEVICE (or default /dev/cdrom)" \         "Eject DEVICE or default /dev/cdrom\n" \
1062         "\n\nOptions:\n" \       "\nOptions:" \
1063         " -t Close tray\n" \   IF_FEATURE_EJECT_SCSI( \
1064         " -T Open/close tray (toggle)"       "\n -s SCSI device" \
1065     ) \
1066         "\n -t Close tray" \
1067         "\n -T Open/close tray (toggle)" \
1068    
1069  #define ed_trivial_usage ""  #define ed_trivial_usage ""
1070  #define ed_full_usage ""  #define ed_full_usage ""
1071    
1072  #define env_trivial_usage \  #define env_trivial_usage \
1073         "[-iu] [-] [name=value]... [command]"         "[-iu] [-] [name=value]... [PROG ARGS]"
1074  #define env_full_usage \  #define env_full_usage "\n\n" \
1075         "Print the current environment or run a program after setting\n" \         "Print the current environment or run PROG after setting up\n" \
1076         "up the specified environment" \         "the specified environment\n" \
1077         "\n\nOptions:\n" \       "\nOptions:" \
1078         " -, -i Start with an empty environment\n" \       "\n -, -i Start with an empty environment" \
1079         " -u Remove variable from the environment"       "\n -u Remove variable from the environment" \
1080    
1081  #define ether_wake_trivial_usage \  #define ether_wake_trivial_usage \
1082         "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"         "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
1083  #define ether_wake_full_usage \  #define ether_wake_full_usage "\n\n" \
1084         "Send a magic packet to wake up sleeping machines.\n" \         "Send a magic packet to wake up sleeping machines.\n" \
1085         "MAC must be a station address (00:11:22:33:44:55) or\n" \         "MAC must be a station address (00:11:22:33:44:55) or\n" \
1086         "a hostname with a known 'ethers' entry." \         "a hostname with a known 'ethers' entry.\n" \
1087         "\n\nOptions:\n" \       "\nOptions:" \
1088         " -b Send wake-up packet to the broadcast address\n" \       "\n -b Send wake-up packet to the broadcast address" \
1089         " -i iface Use interface ifname instead of the default \"eth0\"\n" \       "\n -i iface Interface to use (default eth0)" \
1090         " -p pass Append the four or six byte password PW to the packet"       "\n -p pass Append four or six byte password PW to the packet" \
1091    
1092    #define expand_trivial_usage \
1093           "[-i] [-t N] [FILE|-]"
1094    #define expand_full_usage "\n\n" \
1095           "Convert tabs to spaces, writing to stdout\n" \
1096         "\nOptions:" \
1097     IF_FEATURE_EXPAND_LONG_OPTIONS( \
1098         "\n -i,--initial Don't convert tabs after non blanks" \
1099         "\n -t,--tabs=N Tabstops every N chars" \
1100     ) \
1101     IF_NOT_FEATURE_EXPAND_LONG_OPTIONS( \
1102         "\n -i Don't convert tabs after non blanks" \
1103         "\n -t Tabstops every N chars" \
1104     )
1105    
1106  #define expr_trivial_usage \  #define expr_trivial_usage \
1107         "EXPRESSION"         "EXPRESSION"
1108  #define expr_full_usage \  #define expr_full_usage "\n\n" \
1109         "Print the value of EXPRESSION to standard output.\n\n" \         "Print the value of EXPRESSION to stdout\n" \
1110        "\n" \
1111         "EXPRESSION may be:\n" \         "EXPRESSION may be:\n" \
1112         " ARG1 |  ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \         " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
1113         " ARG1 &  ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \         " ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
1114         " ARG1 <  ARG2 ARG1 is less than ARG2\n" \         " ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:\n" \
1115         " ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \         " ARG1 <= ARG2\n" \
1116         " ARG1 =  ARG2 ARG1 is equal to ARG2\n" \         " ARG1 = ARG2\n" \
1117         " ARG1 != ARG2 ARG1 is unequal to ARG2\n" \         " ARG1 != ARG2\n" \
1118         " ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \         " ARG1 >= ARG2\n" \
1119         " ARG1 >  ARG2 ARG1 is greater than ARG2\n" \         " ARG1 > ARG2\n" \
1120         " ARG1 +  ARG2 Sum of ARG1 and ARG2\n" \         " ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:\n" \
1121         " ARG1 -  ARG2 Difference of ARG1 and ARG2\n" \         " ARG1 - ARG2\n" \
1122         " ARG1 *  ARG2 Product of ARG1 and ARG2\n" \         " ARG1 * ARG2\n" \
1123         " ARG1 /  ARG2 Quotient of ARG1 divided by ARG2\n" \         " ARG1 / ARG2\n" \
1124         " ARG1 %  ARG2 Remainder of ARG1 divided by ARG2\n" \         " ARG1 % ARG2\n" \
1125         " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" \         " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" \
1126         " match STRING REGEXP Same as STRING : REGEXP\n" \         " match STRING REGEXP Same as STRING : REGEXP\n" \
1127         " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \         " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \
# Line 819  Line 1130 
1130         " quote TOKEN Interpret TOKEN as a string, even if\n" \         " quote TOKEN Interpret TOKEN as a string, even if\n" \
1131         " it is a keyword like 'match' or an\n" \         " it is a keyword like 'match' or an\n" \
1132         " operator like '/'\n" \         " operator like '/'\n" \
1133         " (EXPRESSION) Value of EXPRESSION\n\n" \         " (EXPRESSION) Value of EXPRESSION\n" \
1134           "\n" \
1135         "Beware that many operators need to be escaped or quoted for shells.\n" \         "Beware that many operators need to be escaped or quoted for shells.\n" \
1136         "Comparisons are arithmetic if both ARGs are numbers, else\n" \         "Comparisons are arithmetic if both ARGs are numbers, else\n" \
1137         "lexicographical.  Pattern matches return the string matched between\n" \         "lexicographical. Pattern matches return the string matched between\n" \
1138         "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \         "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
1139         "of characters matched or 0."         "of characters matched or 0."
1140    
1141  #define fakeidentd_trivial_usage \  #define fakeidentd_trivial_usage \
1142         "[-fiw] [-b ADDR] [STRING]"         "[-fiw] [-b ADDR] [STRING]"
1143  #define fakeidentd_full_usage \  #define fakeidentd_full_usage "\n\n" \
1144         "Provide fake ident (auth) service" \         "Provide fake ident (auth) service\n" \
1145         "\n\nOptions:" \       "\nOptions:" \
1146         "\n -f Run in foreground" \       "\n -f Run in foreground" \
1147         "\n -i Inetd mode" \       "\n -i Inetd mode" \
1148         "\n -w Inetd 'wait' mode" \       "\n -w Inetd 'wait' mode" \
1149         "\n -b ADDR Bind to specified address" \       "\n -b ADDR Bind to specified address" \
1150         "\n STRING Ident answer string (default is 'nobody')"       "\n STRING Ident answer string (default: nobody)" \
1151    
1152  #define false_trivial_usage \  #define false_trivial_usage \
1153         ""         ""
1154  #define false_full_usage \  #define false_full_usage "\n\n" \
1155         "Return an exit code of FALSE (1)"         "Return an exit code of FALSE (1)"
1156    
1157  #define false_example_usage \  #define false_example_usage \
1158         "$ false\n" \         "$ false\n" \
1159         "$ echo $?\n" \         "$ echo $?\n" \
1160         "1\n"         "1\n"
1161    
1162  #define fbset_trivial_usage \  #define fbset_trivial_usage \
1163         "[options] [mode]"         "[OPTIONS] [MODE]"
1164  #define fbset_full_usage \  #define fbset_full_usage "\n\n" \
1165         "Show and modify frame buffer settings"         "Show and modify frame buffer settings"
1166    
1167  #define fbset_example_usage \  #define fbset_example_usage \
1168         "$ fbset\n" \         "$ fbset\n" \
1169         "mode \"1024x768-76\"\n" \         "mode \"1024x768-76\"\n" \
# Line 862  Line 1176 
1176    
1177  #define fdflush_trivial_usage \  #define fdflush_trivial_usage \
1178         "DEVICE"         "DEVICE"
1179  #define fdflush_full_usage \  #define fdflush_full_usage "\n\n" \
1180         "Force floppy disk drive to detect disk change"         "Force floppy disk drive to detect disk change"
1181    
1182  #define fdformat_trivial_usage \  #define fdformat_trivial_usage \
1183         "[-n] DEVICE"         "[-n] DEVICE"
1184  #define fdformat_full_usage \  #define fdformat_full_usage "\n\n" \
1185         "Format floppy disk" \         "Format floppy disk\n" \
1186         "\n\nOptions:\n" \       "\nOptions:" \
1187         " -n Don't verify after format"       "\n -n Don't verify after format" \
1188    
1189    /* Looks like someone forgot to add this to config system */
1190    #ifndef ENABLE_FEATURE_FDISK_BLKSIZE
1191    # define ENABLE_FEATURE_FDISK_BLKSIZE 0
1192    # define IF_FEATURE_FDISK_BLKSIZE(a)
1193    #endif
1194    
1195  #define fdisk_trivial_usage \  #define fdisk_trivial_usage \
1196         "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"         "[-ul" IF_FEATURE_FDISK_BLKSIZE("s") "] " \
1197  #define fdisk_full_usage \         "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
1198         "Change partition table" \  #define fdisk_full_usage "\n\n" \
1199         "\n\nOptions:\n" \         "Change partition table\n" \
1200         " -l List partition table(s)\n" \       "\nOptions:" \
1201         " -u Give Start and End in sector (instead of cylinder) units\n" \       "\n -u Start and End are in sectors (instead of cylinders)" \
1202         " -s PARTITION Give partition size(s) in blocks\n" \       "\n -l Show partition table for each DISK, then exit" \
1203         " -b 2048 (for certain MO disks) use 2048-byte sectors\n" \   IF_FEATURE_FDISK_BLKSIZE( \
1204         " -C CYLINDERS Set the number of cylinders\n" \       "\n -s Show partition sizes in kb for each DISK, then exit" \
1205         " -H HEADS Set the number of heads\n" \   ) \
1206         " -S SECTORS Set the number of sectors\n" \       "\n -b 2048 (for certain MO disks) use 2048-byte sectors" \
1207         " -v Give fdisk version"       "\n -C CYLINDERS Set number of cylinders/heads/sectors" \
1208         "\n -H HEADS\n" \
1209         "\n -S SECTORS" \
1210    
1211    #define blkid_trivial_usage \
1212           ""
1213    #define blkid_full_usage "\n\n" \
1214           "Print UUIDs of all filesystems"
1215    
1216    #define findfs_trivial_usage \
1217           "LABEL=label or UUID=uuid"
1218    #define findfs_full_usage "\n\n" \
1219           "Find a filesystem device based on a label or UUID"
1220    #define findfs_example_usage \
1221           "$ findfs LABEL=MyDevice"
1222    
1223  #define find_trivial_usage \  #define find_trivial_usage \
1224         "[PATH...] [EXPRESSION]"         "[PATH]... [EXPRESSION]"
1225  #define find_full_usage \  #define find_full_usage "\n\n" \
1226         "Search for files in a directory hierarchy.  The default PATH is\n" \         "Search for files. The default PATH is the current directory,\n" \
1227         "the current directory; default EXPRESSION is '-print'\n" \         "default EXPRESSION is '-print'\n" \
1228         "\nEXPRESSION may consist of:\n" \       "\nEXPRESSION may consist of:" \
1229         " -follow Dereference symbolic links\n" \       "\n -follow Follow symlinks" \
1230         " -name PATTERN File name (leading directories removed) matches PATTERN\n" \   IF_FEATURE_FIND_XDEV( \
1231         " -print Print (default and assumed)" \       "\n -xdev Don't descend directories on other filesystems") \
1232   USE_FEATURE_FIND_PRINT0( \   IF_FEATURE_FIND_MAXDEPTH( \
1233         "\n -print0 Delimit output with null characters rather than" \       "\n -maxdepth N Descend at most N levels. -maxdepth 0 applies" \
1234         "\n newlines" \       "\n tests/actions to command line arguments only") \
1235   ) USE_FEATURE_FIND_TYPE( \       "\n -mindepth N Don't act on first N levels" \
1236         "\n -type X Filetype matches X (where X is one of: f,d,l,b,c,...)" \       "\n -name PATTERN File name (w/o directory name) matches PATTERN" \
1237   ) USE_FEATURE_FIND_PERM( \       "\n -iname PATTERN Case insensitive -name" \
1238         "\n -perm PERMS Permissions match any of (+NNN); all of (-NNN);" \   IF_FEATURE_FIND_PATH( \
1239         "\n or exactly (NNN)" \       "\n -path PATTERN Path matches PATTERN") \
1240   ) USE_FEATURE_FIND_MTIME( \   IF_FEATURE_FIND_REGEX( \
1241         "\n -mtime DAYS Modified time is greater than (+N); less than (-N);" \       "\n -regex PATTERN Path matches regex PATTERN") \
1242         "\n Or exactly (N) days" \   IF_FEATURE_FIND_TYPE( \
1243   ) USE_FEATURE_FIND_MMIN( \       "\n -type X File type is X (X is one of: f,d,l,b,c,...)") \
1244         "\n -mmin MINS Modified time is greater than (+N); less than (-N);" \   IF_FEATURE_FIND_PERM( \
1245         "\n or exactly (N) minutes" \       "\n -perm NNN Permissions match any of (+NNN), all of (-NNN)," \
1246   ) USE_FEATURE_FIND_NEWER( \       "\n or exactly NNN") \
1247         "\n -newer FILE Modified time is more recent than FILE's" \   IF_FEATURE_FIND_MTIME( \
1248   ) USE_FEATURE_FIND_INUM( \       "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \
1249         "\n -inum N File has inode number N" \       "\n or exactly N days") \
1250   ) USE_FEATURE_FIND_EXEC( \   IF_FEATURE_FIND_MMIN( \
1251         "\n -exec CMD Execute CMD with all instances of {} replaced by the" \       "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \
1252         "\n files matching EXPRESSION" \       "\n or exactly N minutes") \
1253   ) USE_DESKTOP( \   IF_FEATURE_FIND_NEWER( \
1254         "\n -size N File size is N" \       "\n -newer FILE Modified time is more recent than FILE's") \
1255         "\n -prune Stop traversing current subtree" \   IF_FEATURE_FIND_INUM( \
1256         "\n (expr) Group" \       "\n -inum N File has inode number N") \
1257   )   IF_FEATURE_FIND_USER( \
1258         "\n -user NAME File is owned by user NAME (numeric user ID allowed)") \
1259     IF_FEATURE_FIND_GROUP( \
1260         "\n -group NAME File belongs to group NAME (numeric group ID allowed)") \
1261     IF_FEATURE_FIND_DEPTH( \
1262         "\n -depth Process directory name after traversing it") \
1263     IF_FEATURE_FIND_SIZE( \
1264         "\n -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))" \
1265         "\n +/-N: file size is bigger/smaller than N") \
1266     IF_FEATURE_FIND_LINKS( \
1267         "\n -links N Number of links is greater than (+N), less than (-N)," \
1268         "\n or exactly N") \
1269         "\n -print Print (default and assumed)" \
1270     IF_FEATURE_FIND_PRINT0( \
1271         "\n -print0 Delimit output with null characters rather than" \
1272         "\n newlines") \
1273     IF_FEATURE_FIND_CONTEXT ( \
1274         "\n -context File has specified security context") \
1275     IF_FEATURE_FIND_EXEC( \
1276         "\n -exec CMD ARG ; Run CMD with all instances of {} replaced by the" \
1277         "\n matching files") \
1278     IF_FEATURE_FIND_PRUNE( \
1279         "\n -prune Stop traversing current subtree") \
1280     IF_FEATURE_FIND_DELETE( \
1281         "\n -delete Delete files, turns on -depth option") \
1282     IF_FEATURE_FIND_PAREN( \
1283         "\n (EXPR) Group an expression") \
1284    
1285  #define find_example_usage \  #define find_example_usage \
1286         "$ find / -name passwd\n" \         "$ find / -name passwd\n" \
1287         "/etc/passwd\n"         "/etc/passwd\n"
1288    
1289    #define flash_lock_trivial_usage \
1290           "MTD_DEVICE OFFSET SECTORS"
1291    #define flash_lock_full_usage "\n\n" \
1292           "Lock part or all of an MTD device. If SECTORS is -1, then all sectors\n" \
1293           "will be locked, regardless of the value of OFFSET"
1294    
1295    #define flash_unlock_trivial_usage \
1296           "MTD_DEVICE"
1297    #define flash_unlock_full_usage "\n\n" \
1298           "Unlock an MTD device"
1299    
1300    #define flash_eraseall_trivial_usage \
1301           "[-jq] MTD_DEVICE"
1302    #define flash_eraseall_full_usage "\n\n" \
1303           "Erase an MTD device\n" \
1304         "\nOptions:" \
1305         "\n -j Format the device for jffs2" \
1306         "\n -q Don't display progress messages" \
1307    
1308    #define flashcp_trivial_usage \
1309           "-v FILE MTD_DEVICE"
1310    #define flashcp_full_usage "\n\n" \
1311           "Copy an image to MTD device\n" \
1312         "\nOptions:" \
1313         "\n -v Verbose" \
1314    
1315  #define fold_trivial_usage \  #define fold_trivial_usage \
1316         "[-bs] [-w WIDTH] [FILE]"         "[-bs] [-w WIDTH] [FILE]..."
1317  #define fold_full_usage \  #define fold_full_usage "\n\n" \
1318         "Wrap input lines in each FILE (standard input by default), writing to\n" \         "Wrap input lines in each FILE (or stdin), writing to stdout\n" \
1319         "standard output" \       "\nOptions:" \
1320         "\n\nOptions:\n" \       "\n -b Count bytes rather than columns" \
1321         " -b Count bytes rather than columns\n" \       "\n -s Break at spaces" \
1322         " -s Break at spaces\n" \       "\n -w Use WIDTH columns instead of 80" \
        " -w Use WIDTH columns instead of 80"  
1323    
1324  #define free_trivial_usage \  #define free_trivial_usage \
1325         ""         ""
1326  #define free_full_usage \  #define free_full_usage "\n\n" \
1327         "Display the amount of free and used system memory"         "Display the amount of free and used system memory"
1328  #define free_example_usage \  #define free_example_usage \
1329         "$ free\n" \         "$ free\n" \
# Line 949  Line 1334 
1334    
1335  #define freeramdisk_trivial_usage \  #define freeramdisk_trivial_usage \
1336         "DEVICE"         "DEVICE"
1337  #define freeramdisk_full_usage \  #define freeramdisk_full_usage "\n\n" \
1338         "Free all memory used by the specified ramdisk"         "Free all memory used by the specified ramdisk"
1339  #define freeramdisk_example_usage \  #define freeramdisk_example_usage \
1340         "$ freeramdisk /dev/ram2\n"         "$ freeramdisk /dev/ram2\n"
1341    
1342  #define fsck_trivial_usage \  #define fsck_trivial_usage \
1343         "[-ANPRTV] [ -C fd ] [-t fstype] [fs-options] [filesys ...]"         "[-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]..."
1344  #define fsck_full_usage \  #define fsck_full_usage "\n\n" \
1345         "Check and repair filesystems" \         "Check and repair filesystems\n" \
1346         "\n\nOptions:\n" \       "\nOptions:" \
1347         " -A Walk /etc/fstab and check all filesystems\n" \       "\n -A Walk /etc/fstab and check all filesystems" \
1348         " -N Don't execute, just show what would be done\n" \       "\n -N Don't execute, just show what would be done" \
1349         " -P When using -A, check filesystems in parallel\n" \       "\n -P With -A, check filesystems in parallel" \
1350         " -R When using -A, skip the root filesystem\n" \       "\n -R With -A, skip the root filesystem" \
1351         " -T Don't show title on startup\n" \       "\n -T Don't show title on startup" \
1352         " -V Verbose\n" \       "\n -V Verbose" \
1353         " -C n Write status information to specified filedescriptor\n" \       "\n -C n Write status information to specified filedescriptor" \
1354         " -t type List of filesystem types to check"       "\n -t TYPE List of filesystem types to check" \
1355    
1356  #define fsck_minix_trivial_usage \  #define fsck_minix_trivial_usage \
1357         "[-larvsmf] /dev/name"         "[-larvsmf] BLOCKDEV"
1358  #define fsck_minix_full_usage \  #define fsck_minix_full_usage "\n\n" \
1359         "Perform a consistency check for MINIX filesystems" \         "Check MINIX filesystem\n" \
1360         "\n\nOptions:\n" \       "\nOptions:" \
1361         " -l Lists all filenames\n" \       "\n -l List all filenames" \
1362         " -r Perform interactive repairs\n" \       "\n -r Perform interactive repairs" \
1363         " -a Perform automatic repairs\n" \       "\n -a Perform automatic repairs" \
1364         " -v Verbose\n" \       "\n -v Verbose" \
1365         " -s Outputs super-block information\n" \       "\n -s Output superblock information" \
1366         " -m Activates MINIX-like \"mode not cleared\" warnings\n" \       "\n -m Show \"mode not cleared\" warnings" \
1367         " -f Force file system check"       "\n -f Force file system check" \
1368    
1369    #define ftpd_trivial_usage \
1370           "[-wvS] [-t N] [-T N] [DIR]"
1371    #define ftpd_full_usage "\n\n" \
1372           "Anonymous FTP server\n" \
1373           "\n" \
1374           "ftpd should be used as an inetd service.\n" \
1375           "ftpd's line for inetd.conf:\n" \
1376           " 21 stream tcp nowait root ftpd ftpd /files/to/serve\n" \
1377           "It also can be ran from tcpsvd:\n" \
1378           " tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve\n" \
1379         "\nOptions:" \
1380         "\n -w Allow upload" \
1381         "\n -v Log to stderr" \
1382         "\n -S Log to syslog" \
1383         "\n -t,-T Idle and absolute timeouts" \
1384         "\n DIR Change root to this directory" \
1385    
1386  #define ftpget_trivial_usage \  #define ftpget_trivial_usage \
1387         "[options] remote-host local-file remote-file"         "[OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE"
1388  #define ftpget_full_usage \  #define ftpget_full_usage "\n\n" \
1389         "Retrieve a remote file via FTP" \         "Retrieve a remote file via FTP\n" \
1390         "\n\nOptions:\n" \       "\nOptions:" \
1391         " -c, --continue Continue a previous transfer\n" \   IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1392         " -v, --verbose Verbose\n" \       "\n -c,--continue Continue previous transfer" \
1393         " -u, --username Username to be used\n" \       "\n -v,--verbose Verbose" \
1394         " -p, --password Password to be used\n" \       "\n -u,--username Username" \
1395         " -P, --port Port number to be used"       "\n -p,--password Password" \
1396         "\n -P,--port Port number" \
1397     ) \
1398     IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1399         "\n -c Continue previous transfer" \
1400         "\n -v Verbose" \
1401         "\n -u Username" \
1402         "\n -p Password" \
1403         "\n -P Port number" \
1404     )
1405    
1406  #define ftpput_trivial_usage \  #define ftpput_trivial_usage \
1407         "[options] remote-host remote-file local-file"         "[OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE"
1408  #define ftpput_full_usage \  #define ftpput_full_usage "\n\n" \
1409         "Store a local file on a remote machine via FTP" \         "Store a local file on a remote machine via FTP\n" \
1410         "\n\nOptions:\n" \       "\nOptions:" \
1411         " -v, --verbose Verbose\n" \   IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1412         " -u, --username Username to be used\n" \       "\n -v,--verbose Verbose" \
1413         " -p, --password Password to be used\n" \       "\n -u,--username Username" \
1414         " -P, --port Port number to be used"       "\n -p,--password Password" \
1415         "\n -P,--port Port number" \
1416     ) \
1417     IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1418         "\n -v Verbose" \
1419         "\n -u Username" \
1420         "\n -p Password" \
1421         "\n -P Port number" \
1422     )
1423    
1424  #define fuser_trivial_usage \  #define fuser_trivial_usage \
1425         "[options] file OR port/proto"         "[OPTIONS] FILE or PORT/PROTO"
1426  #define fuser_full_usage \  #define fuser_full_usage "\n\n" \
1427         "Options:\n" \         "Find processes which use FILEs or PORTs\n" \
1428         " -m Show all processes on the same mounted fs\n" \       "\nOptions:" \
1429         " -k Kill all processes that match\n" \       "\n -m Find processes which use same fs as FILEs" \
1430         " -s Don't print or kill anything\n" \       "\n -4 Search only IPv4 space" \
1431         " -4 When using port/proto only search IPv4 space\n" \       "\n -6 Search only IPv6 space" \
1432         " -6 When using port/proto only search IPv6 space\n" \       "\n -s Silent: just exit with 0 if any processes are found" \
1433         " -SIGNAL When used with -k, this signal will be used to kill"       "\n -k Kill found processes (otherwise display PIDs)" \
1434         "\n -SIGNAL Signal to send (default: TERM)" \
1435    
1436    #define getenforce_trivial_usage NOUSAGE_STR
1437    #define getenforce_full_usage ""
1438    
1439  #define getopt_trivial_usage \  #define getopt_trivial_usage \
1440         "[OPTIONS]..."         "[OPTIONS]"
1441  #define getopt_full_usage \  #define getopt_full_usage "\n\n" \
1442         "Parse command options\n" \         "Options:" \
1443         " -a, --alternative Allow long options starting with single -\n" \   IF_LONG_OPTS( \
1444         " -l, --longoptions=longopts Long options to be recognized\n" \       "\n -a,--alternative Allow long options starting with single -" \
1445         " -n, --name=progname The name under which errors are reported\n" \       "\n -l,--longoptions=longopts Long options to be recognized" \
1446         " -o, --options=optstring Short options to be recognized\n" \       "\n -n,--name=progname The name under which errors are reported" \
1447         " -q, --quiet Disable error reporting by getopt(3)\n" \       "\n -o,--options=optstring Short options to be recognized" \
1448         " -Q, --quiet-output No normal output\n" \       "\n -q,--quiet Disable error reporting by getopt(3)" \
1449         " -s, --shell=shell Set shell quoting conventions\n" \       "\n -Q,--quiet-output No normal output" \
1450         " -T, --test Test for getopt(1) version\n" \       "\n -s,--shell=shell Set shell quoting conventions" \
1451         " -u, --unquoted Do not quote the output"       "\n -T,--test Test for getopt(1) version" \
1452         "\n -u,--unquoted Don't quote the output" \
1453     ) \
1454     IF_NOT_LONG_OPTS( \
1455         "\n -a Allow long options starting with single -" \
1456         "\n -l longopts Long options to be recognized" \
1457         "\n -n progname The name under which errors are reported" \
1458         "\n -o optstring Short options to be recognized" \
1459         "\n -q Disable error reporting by getopt(3)" \
1460         "\n -Q No normal output" \
1461         "\n -s shell Set shell quoting conventions" \
1462         "\n -T Test for getopt(1) version" \
1463         "\n -u Don't quote the output" \
1464     )
1465  #define getopt_example_usage \  #define getopt_example_usage \
1466         "$ cat getopt.test\n" \         "$ cat getopt.test\n" \
1467         "#!/bin/sh\n" \         "#!/bin/sh\n" \
1468         "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \         "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
1469         "       -n 'example.busybox' -- \"$@\"`\n" \         "       -n 'example.busybox' -- \"$@\"`\n" \
1470         "if [ $? != 0 ] ; then  exit 1 ; fi\n" \         "if [ $? != 0 ]; then exit 1; fi\n" \
1471         "eval set -- \"$GETOPT\"\n" \         "eval set -- \"$GETOPT\"\n" \
1472         "while true ; do\n" \         "while true; do\n" \
1473         " case $1 in\n" \         " case $1 in\n" \
1474         "   -a|--a-long) echo \"Option a\" ; shift ;;\n" \         "   -a|--a-long) echo \"Option a\"; shift;;\n" \
1475         "   -b|--b-long) echo \"Option b, argument '$2'\" ; shift 2 ;;\n" \         "   -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \
1476         "   -c|--c-long)\n" \         "   -c|--c-long)\n" \
1477         "     case \"$2\" in\n" \         "     case \"$2\" in\n" \
1478         "       \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \         "       \"\") echo \"Option c, no argument\"; shift 2;;\n" \
1479         "       *)  echo \"Option c, argument '$2'\" ; shift 2 ;;\n" \         "       *)  echo \"Option c, argument '$2'\"; shift 2;;\n" \
1480         "     esac ;;\n" \         "     esac;;\n" \
1481         "   --) shift ; break ;;\n" \         "   --) shift; break;;\n" \
1482         "   *) echo \"Internal error!\" ; exit 1 ;;\n" \         "   *) echo \"Internal error!\"; exit 1;;\n" \
1483         " esac\n" \         " esac\n" \
1484         "done\n"         "done\n"
1485    
1486    #define getsebool_trivial_usage \
1487           "-a or getsebool boolean..."
1488    #define getsebool_full_usage "\n\n" \
1489           " -a Show all SELinux booleans"
1490    
1491  #define getty_trivial_usage \  #define getty_trivial_usage \
1492         "[OPTIONS]... baud_rate,... line [termtype]"         "[OPTIONS] BAUD_RATE TTY [TERMTYPE]"
1493  #define getty_full_usage \  #define getty_full_usage "\n\n" \
1494         "Open a tty, prompt for a login name, then invoke /bin/login" \         "Open a tty, prompt for a login name, then invoke /bin/login\n" \
1495         "\n\nOptions:\n" \       "\nOptions:" \
1496         " -h Enable hardware (RTS/CTS) flow control\n" \       "\n -h Enable hardware (RTS/CTS) flow control" \
1497         " -i Do not display /etc/issue before running login\n" \       "\n -i Don't display /etc/issue before running login" \
1498         " -L Local line, so do not do carrier detect\n" \       "\n -L Local line, don't do carrier detect" \
1499         " -m Get baud rate from modem's CONNECT status message\n" \       "\n -m Get baud rate from modem's CONNECT status message" \
1500         " -w Wait for a CR or LF before sending /etc/issue\n" \       "\n -w Wait for a CR or LF before sending /etc/issue" \
1501         " -n Do not prompt the user for a login name\n" \       "\n -n Don't prompt the user for a login name" \
1502         " -f issue_file Display issue_file instead of /etc/issue\n" \       "\n -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue" \
1503         " -l login_app Invoke login_app instead of /bin/login\n" \       "\n -l LOGIN Invoke LOGIN instead of /bin/login" \
1504         " -t timeout Terminate after timeout if no username is read\n" \       "\n -t SEC Terminate after SEC if no username is read" \
1505         " -I initstring Sets the init string to send before anything else\n" \       "\n -I INITSTR Send INITSTR before anything else" \
1506         " -H login_host Log login_host into the utmp file as the hostname"       "\n -H HOST Log HOST into the utmp file as the hostname" \
1507    
1508  #define grep_trivial_usage \  #define grep_trivial_usage \
1509         "[-rihHnqvso" \         "[-HhnlLoqvsri" \
1510   USE_FEATURE_GREP_EGREP_ALIAS("E") \   IF_DESKTOP("w") \
1511   USE_FEATURE_GREP_CONTEXT("ABC") \         "F" \
1512         "] PATTERN [FILEs...]"   IF_FEATURE_GREP_EGREP_ALIAS("E") \
1513  #define grep_full_usage \   IF_EXTRA_COMPAT("z") \
1514         "Search for PATTERN in each FILE or standard input" \         "] [-m N] " \
1515         "\n\nOptions:\n" \   IF_FEATURE_GREP_CONTEXT("[-A/B/C N] ") \
1516         " -H Prefix output lines with filename where match was found\n" \         "PATTERN/-e PATTERN.../-f FILE [FILE]..."
1517         " -h Suppress the prefixing filename on output\n" \  #define grep_full_usage "\n\n" \
1518         " -r Recurse subdirectories\n" \         "Search for PATTERN in FILEs (or stdin)\n" \
1519         " -i Ignore case distinctions\n" \       "\nOptions:" \
1520         " -l List names of files that match\n" \       "\n -H Add 'filename:' prefix" \
1521         " -L List names of files that do not match\n" \       "\n -h Do not add 'filename:' prefix" \
1522         " -n Print line number with output lines\n" \       "\n -n Add 'line_no:' prefix" \
1523         " -q Be quiet. Returns 0 if PATTERN was found, 1 otherwise\n" \       "\n -l Show only names of files that match" \
1524         " -v Select non-matching lines\n" \       "\n -L Show only names of files that don't match" \
1525         " -s Suppress file open/read error messages\n" \       "\n -c Show only count of matching lines" \
1526         " -c Only print count of matching lines\n" \       "\n -o Show only the matching part of line" \
1527         " -f Read PATTERN from file\n" \       "\n -q Quiet. Return 0 if PATTERN is found, 1 otherwise" \
1528         " -o Show only the part of a line that matches PATTERN\n" \       "\n -v Select non-matching lines" \
1529         " -e PATTERN is a regular expression\n" \       "\n -s Suppress open and read errors" \
1530         " -F PATTERN is a set of newline-separated strings" \       "\n -r Recurse" \
1531   USE_FEATURE_GREP_EGREP_ALIAS( \       "\n -i Ignore case" \
1532         "\n -E PATTERN is an extended regular expression") \   IF_DESKTOP( \
1533   USE_FEATURE_GREP_CONTEXT( \       "\n -w Match whole words only" \
1534         "\n -A Print NUM lines of trailing context") \   ) \
1535   USE_FEATURE_GREP_CONTEXT( \       "\n -F PATTERN is a literal (not regexp)" \
1536         "\n -B Print NUM lines of leading context") \   IF_FEATURE_GREP_EGREP_ALIAS( \
1537   USE_FEATURE_GREP_CONTEXT( \       "\n -E PATTERN is an extended regexp" \
1538         "\n -C Print NUM lines of output context")   ) \
1539     IF_EXTRA_COMPAT( \
1540         "\n -z Input is NUL terminated" \
1541     ) \
1542         "\n -m N Match up to N times per file" \
1543     IF_FEATURE_GREP_CONTEXT( \
1544         "\n -A N Print N lines of trailing context" \
1545         "\n -B N Print N lines of leading context" \
1546         "\n -C N Same as '-A N -B N'" \
1547     ) \
1548         "\n -e PTRN Pattern to match" \
1549         "\n -f FILE Read pattern from file" \
1550    
1551  #define grep_example_usage \  #define grep_example_usage \
1552         "$ grep root /etc/passwd\n" \         "$ grep root /etc/passwd\n" \
# Line 1102  Line 1554 
1554         "$ grep ^[rR]oo. /etc/passwd\n" \         "$ grep ^[rR]oo. /etc/passwd\n" \
1555         "root:x:0:0:root:/root:/bin/bash\n"         "root:x:0:0:root:/root:/bin/bash\n"
1556    
1557    #define egrep_trivial_usage NOUSAGE_STR
1558    #define egrep_full_usage ""
1559    
1560    #define fgrep_trivial_usage NOUSAGE_STR
1561    #define fgrep_full_usage ""
1562    
1563  #define gunzip_trivial_usage \  #define gunzip_trivial_usage \
1564         "[OPTION]... FILE"         "[OPTIONS] [FILE]..."
1565  #define gunzip_full_usage \  #define gunzip_full_usage "\n\n" \
1566         "Uncompress FILE (or standard input if FILE is '-')" \         "Uncompress FILEs (or stdin)\n" \
1567         "\n\nOptions:\n" \       "\nOptions:" \
1568         " -c Write output to standard output\n" \       "\n -c Write to stdout" \
1569         " -f Force read when source is a terminal\n" \       "\n -f Force" \
1570         " -t Test compressed file integrity"       "\n -t Test file integrity" \
1571    
1572  #define gunzip_example_usage \  #define gunzip_example_usage \
1573         "$ ls -la /tmp/BusyBox*\n" \         "$ ls -la /tmp/BusyBox*\n" \
1574         "-rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \         "-rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
# Line 1118  Line 1577 
1577         "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"         "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
1578    
1579  #define gzip_trivial_usage \  #define gzip_trivial_usage \
1580         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
1581  #define gzip_full_usage \  #define gzip_full_usage "\n\n" \
1582         "Compress FILE(s) with maximum compression.\n" \         "Compress FILEs (or stdin)\n" \
1583         "When FILE is '-' or unspecified, reads standard input.  Implies -c." \       "\nOptions:" \
1584         "\n\nOptions:\n" \       "\n -c Write to stdout" \
1585         " -c Write output to standard output instead of FILE.gz\n" \       "\n -d Decompress" \
1586         " -d Decompress\n" \       "\n -f Force" \
1587         " -f Force write when destination is a terminal"  
1588  #define gzip_example_usage \  #define gzip_example_usage \
1589         "$ ls -la /tmp/busybox*\n" \         "$ ls -la /tmp/busybox*\n" \
1590         "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar\n" \         "-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
# Line 1134  Line 1593 
1593         "-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"         "-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
1594    
1595  #define halt_trivial_usage \  #define halt_trivial_usage \
1596         "[-d<delay>] [-n<nosync>] [-f<force>]"         "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]")
1597  #define halt_full_usage \  #define halt_full_usage "\n\n" \
1598         "Halt the system" \         "Halt the system\n" \
1599         "\n\nOptions:\n" \       "\nOptions:" \
1600         " -d Delay interval for halting\n" \       "\n -d Delay interval for halting" \
1601         " -n No call to sync()\n" \       "\n -n No call to sync()" \
1602         " -f Force halt (don't go through init)"       "\n -f Force halt (don't go through init)" \
1603     IF_FEATURE_WTMP( \
1604         "\n -w Only write a wtmp record" \
1605     )
1606    
1607  #define hdparm_trivial_usage \  #define hdparm_trivial_usage \
1608         "[options] [device] .."         "[OPTIONS] [DEVICE]"
1609  #define hdparm_full_usage \  #define hdparm_full_usage "\n\n" \
1610   USE_FEATURE_HDPARM_GET_IDENTITY( \         "Options:" \
1611         "If no device name is specified try to read from stdin.\n\n") \       "\n -a Get/set fs readahead" \
1612         "Options:\n" \       "\n -A Set drive read-lookahead flag (0/1)" \
1613         " -a Get/set fs readahead\n" \       "\n -b Get/set bus state (0 == off, 1 == on, 2 == tristate)" \
1614         " -A Set drive read-lookahead flag (0/1)\n" \       "\n -B Set Advanced Power Management setting (1-255)" \
1615         " -b Get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \       "\n -c Get/set IDE 32-bit IO setting" \
1616         " -B Set Advanced Power Management setting (1-255)\n" \       "\n -C Check IDE power mode status" \
1617         " -c Get/set IDE 32-bit IO setting\n" \   IF_FEATURE_HDPARM_HDIO_GETSET_DMA( \
1618         " -C Check IDE power mode status\n" \       "\n -d Get/set using_dma flag") \
1619   USE_FEATURE_HDPARM_HDIO_GETSET_DMA( \       "\n -D Enable/disable drive defect-mgmt" \
1620         " -d Get/set using_dma flag\n") \       "\n -f Flush buffer cache for device on exit" \
1621         " -D Enable/disable drive defect-mgmt\n" \       "\n -g Display drive geometry" \
1622         " -f Flush buffer cache for device on exit\n" \       "\n -h Display terse usage information" \
1623         " -g Display drive geometry\n" \   IF_FEATURE_HDPARM_GET_IDENTITY( \
1624         " -h Display terse usage information\n" \       "\n -i Display drive identification") \
1625   USE_FEATURE_HDPARM_GET_IDENTITY( \   IF_FEATURE_HDPARM_GET_IDENTITY( \
1626         " -i Display drive identification\n") \       "\n -I Detailed/current information directly from drive") \
1627   USE_FEATURE_HDPARM_GET_IDENTITY( \       "\n -k Get/set keep_settings_over_reset flag (0/1)" \
1628         " -I Detailed/current information directly from drive\n") \       "\n -K Set drive keep_features_over_reset flag (0/1)" \
1629         " -k Get/set keep_settings_over_reset flag (0/1)\n" \       "\n -L Set drive doorlock (0/1) (removable harddisks only)" \
1630         " -K Set drive keep_features_over_reset flag (0/1)\n" \       "\n -m Get/set multiple sector count" \
1631         " -L Set drive doorlock (0/1) (removable harddisks only)\n" \       "\n -n Get/set ignore-write-errors flag (0/1)" \
1632         " -m Get/set multiple sector count\n" \       "\n -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)" \
1633         " -n Get/set ignore-write-errors flag (0/1)\n" \       "\n -P Set drive prefetch count" \
1634         " -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \  /*   "\n -q Change next setting quietly" - not supported ib bbox */ \
1635         " -P Set drive prefetch count\n" \       "\n -Q Get/set DMA tagged-queuing depth (if supported)" \
1636         " -q Change next setting quietly\n" \       "\n -r Get/set readonly flag (DANGEROUS to set)" \
1637         " -Q Get/set DMA tagged-queuing depth (if supported)\n" \   IF_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
1638         " -r Get/set readonly flag (DANGEROUS to set)\n" \       "\n -R Register an IDE interface (DANGEROUS)") \
1639   USE_FEATURE_HDPARM_HDIO_SCAN_HWIF( \       "\n -S Set standby (spindown) timeout" \
1640         " -R Register an IDE interface (DANGEROUS)\n") \       "\n -t Perform device read timings" \
1641         " -S Set standby (spindown) timeout\n" \       "\n -T Perform cache read timings" \
1642         " -t Perform device read timings\n" \       "\n -u Get/set unmaskirq flag (0/1)" \
1643         " -T Perform cache read timings\n" \   IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \
1644         " -u Get/set unmaskirq flag (0/1)\n" \       "\n -U Unregister an IDE interface (DANGEROUS)") \
1645   USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \       "\n -v Defaults; same as -mcudkrag for IDE drives" \
1646         " -U Un-register an IDE interface (DANGEROUS)\n") \       "\n -V Display program version and exit immediately" \
1647         " -v Defaults; same as -mcudkrag for IDE drives\n" \   IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( \
1648         " -V Display program version and exit immediately\n" \       "\n -w Perform device reset (DANGEROUS)") \
1649   USE_FEATURE_HDPARM_HDIO_DRIVE_RESET( \       "\n -W Set drive write-caching flag (0/1) (DANGEROUS)" \
1650         " -w Perform device reset (DANGEROUS)\n") \   IF_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \
1651         " -W Set drive write-caching flag (0/1) (DANGEROUS)\n" \       "\n -x Tristate device for hotswap (0/1) (DANGEROUS)") \
1652   USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \       "\n -X Set IDE xfer mode (DANGEROUS)" \
1653         " -x Tristate device for hotswap (0/1) (DANGEROUS)\n") \       "\n -y Put IDE drive in standby mode" \
1654         " -X Set IDE xfer mode (DANGEROUS)\n" \       "\n -Y Put IDE drive to sleep" \
1655         " -y Put IDE drive in standby mode\n" \       "\n -Z Disable Seagate auto-powersaving mode" \
1656         " -Y Put IDE drive to sleep\n" \       "\n -z Reread partition table" \
        " -Z Disable Seagate auto-powersaving mode\n" \  
        " -z Re-read partition table"  
1657    
1658  #define head_trivial_usage \  #define head_trivial_usage \
1659         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
1660  #define head_full_usage \  #define head_full_usage "\n\n" \
1661         "Print first 10 lines of each FILE to standard output.\n" \         "Print first 10 lines of each FILE (or stdin) to stdout.\n" \
1662         "With more than one FILE, precede each with a header giving the\n" \         "With more than one FILE, precede each with a header giving the file name.\n" \
1663         "file name. With no FILE, or when FILE is -, read standard input." \       "\nOptions:" \
1664         "\n\nOptions:" \       "\n -n N Print first N lines instead of first 10" \
1665         "\n -n NUM Print first NUM lines instead of first 10" \   IF_FEATURE_FANCY_HEAD( \
1666   USE_FEATURE_FANCY_HEAD( \       "\n -c N Output the first N bytes" \
1667         "\n -c NUM Output the first NUM bytes" \       "\n -q Never output headers giving file names" \
1668         "\n -q Never output headers giving file names" \       "\n -v Always output headers giving file names") \
1669         "\n -v Always output headers giving file names")  
1670  #define head_example_usage \  #define head_example_usage \
1671         "$ head -n 2 /etc/passwd\n" \         "$ head -n 2 /etc/passwd\n" \
1672         "root:x:0:0:root:/root:/bin/bash\n" \         "root:x:0:0:root:/root:/bin/bash\n" \
1673         "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"         "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
1674    
1675  #define hexdump_trivial_usage \  #define hexdump_trivial_usage \
1676         "[-[bcCdefnosvx]] [OPTION] FILE"         "[-bcCdefnosvx" IF_FEATURE_HEXDUMP_REVERSE("R") "] [FILE]..."
1677  #define hexdump_full_usage \  #define hexdump_full_usage "\n\n" \
1678         "Display file(s) or standard input in a user specified format" \         "Display FILEs (or stdin) in a user specified format\n" \
1679         "\n\nOptions:\n" \       "\nOptions:" \
1680         " -b One-byte octal display\n" \       "\n -b One-byte octal display" \
1681         " -c One-byte character display\n" \       "\n -c One-byte character display" \
1682         " -C Canonical hex+ASCII, 16 bytes per line\n" \       "\n -C Canonical hex+ASCII, 16 bytes per line" \
1683         " -d Two-byte decimal display\n" \       "\n -d Two-byte decimal display" \
1684         " -e FORMAT STRING\n" \       "\n -e FORMAT STRING" \
1685         " -f FORMAT FILE\n" \       "\n -f FORMAT FILE" \
1686         " -n LENGTH Interpret only length bytes of input\n" \       "\n -n LENGTH Interpret only LENGTH bytes of input" \
1687         " -o Two-byte octal display\n" \       "\n -o Two-byte octal display" \
1688         " -s OFFSET Skip offset bytes\n" \       "\n -s OFFSET Skip OFFSET bytes" \
1689         " -v Display all input data\n" \       "\n -v Display all input data" \
1690         " -x Two-byte hexadecimal display"       "\n -x Two-byte hexadecimal display" \
1691     IF_FEATURE_HEXDUMP_REVERSE( \
1692         "\n -R Reverse of 'hexdump -Cv'") \
1693    
1694    #define hd_trivial_usage \
1695           "FILE..."
1696    #define hd_full_usage "\n\n" \
1697           "hd is an alias for hexdump -C"
1698    
1699  #define hostid_trivial_usage \  #define hostid_trivial_usage \
1700         ""         ""
1701  #define hostid_full_usage \  #define hostid_full_usage "\n\n" \
1702         "Print out a unique 32-bit identifier for the machine"         "Print out a unique 32-bit identifier for the machine"
1703    
1704  #define hostname_trivial_usage \  #define hostname_trivial_usage \
1705         "[OPTION] {hostname | -F FILE}"         "[OPTIONS] [HOSTNAME | -F FILE]"
1706  #define hostname_full_usage \  #define hostname_full_usage "\n\n" \
1707         "Get or set the hostname or DNS domain name. If a hostname is given\n" \         "Get or set hostname or DNS domain name\n" \
1708         "(or FILE with the -F parameter), the host name will be set." \       "\nOptions:" \
1709         "\n\nOptions:\n" \       "\n -s Short" \
1710         " -s Short\n" \       "\n -i Addresses for the hostname" \
1711         " -i Addresses for the hostname\n" \       "\n -d DNS domain name" \
1712         " -d DNS domain name\n" \       "\n -f Fully qualified domain name" \
1713         " -f Fully qualified domain name\n" \       "\n -F FILE Use FILE's content as hostname" \
1714         " -F FILE Use the contents of FILE to specify the hostname"  
1715  #define hostname_example_usage \  #define hostname_example_usage \
1716         "$ hostname\n" \         "$ hostname\n" \
1717         "sage\n"         "sage\n"
1718    
1719    #define dnsdomainname_trivial_usage NOUSAGE_STR
1720    #define dnsdomainname_full_usage ""
1721    
1722  #define httpd_trivial_usage \  #define httpd_trivial_usage \
1723         "[-c <conf file>]" \         "[-ifv[v]]" \
1724         " [-p <port>]" \         " [-c CONFFILE]" \
1725         " [-i] [-f]" \         " [-p [IP:]PORT]" \
1726   USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \   IF_FEATURE_HTTPD_SETUID(" [-u USER[:GRP]]") \
1727   USE_FEATURE_HTTPD_BASIC_AUTH(" [-r <realm>]") \   IF_FEATURE_HTTPD_BASIC_AUTH(" [-r REALM]") \
1728   USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \         " [-h HOME]\n" \
1729         " [-h home]" \         "or httpd -d/-e" IF_FEATURE_HTTPD_AUTH_MD5("/-m") " STRING"
1730         " [-d/-e <string>]"  #define httpd_full_usage "\n\n" \
1731  #define httpd_full_usage \         "Listen for incoming HTTP requests\n" \
1732         "Listen for incoming http server requests" \       "\nOptions:" \
1733         "\n\nOptions:\n" \       "\n -i Inetd mode" \
1734         " -c FILE Specifies configuration file. (default httpd.conf)\n" \       "\n -f Don't daemonize" \
1735         " -p PORT Server port (default 80)\n" \       "\n -v[v] Verbose" \
1736         " -i Assume that we are started from inetd\n" \       "\n -c FILE Configuration file (default httpd.conf)" \
1737         " -f Do not daemonize\n" \       "\n -p [IP:]PORT Bind to ip:port (default *:80)" \
1738   USE_FEATURE_HTTPD_SETUID( \   IF_FEATURE_HTTPD_SETUID( \
1739         " -u USER[:GRP] Set uid/gid after binding to port\n") \       "\n -u USER[:GRP] Set uid/gid after binding to port") \
1740   USE_FEATURE_HTTPD_BASIC_AUTH( \   IF_FEATURE_HTTPD_BASIC_AUTH( \
1741         " -r REALM Authentication Realm for Basic Authentication\n") \       "\n -r REALM Authentication Realm for Basic Authentication") \
1742   USE_FEATURE_HTTPD_AUTH_MD5( \       "\n -h HOME Home directory (default .)" \
1743         " -m PASS Crypt PASS with md5 algorithm\n") \   IF_FEATURE_HTTPD_AUTH_MD5( \
1744         " -h HOME Specifies http HOME directory (default ./)\n" \       "\n -m STRING MD5 crypt STRING") \
1745         " -e STRING HTML encode STRING\n" \       "\n -e STRING HTML encode STRING" \
1746         " -d STRING URL decode STRING"       "\n -d STRING URL decode STRING" \
1747    
1748  #define hwclock_trivial_usage \  #define hwclock_trivial_usage \
1749         "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"   IF_FEATURE_HWCLOCK_LONG_OPTIONS( \
1750  #define hwclock_full_usage \         "[-r|--show] [-s|--hctosys] [-w|--systohc]" \
1751         "Query and set the hardware clock (RTC)" \         " [-l|--localtime] [-u|--utc]" \
1752         "\n\nOptions:\n" \         " [-f FILE]" \
1753         " -r Read hardware clock and print result\n" \   ) \
1754         " -s Set the system time from the hardware clock\n" \   IF_NOT_FEATURE_HWCLOCK_LONG_OPTIONS( \
1755         " -w Set the hardware clock to the current system time\n" \         "[-r] [-s] [-w] [-l] [-u] [-f FILE]" \
1756         " -u The hardware clock is kept in coordinated universal time\n" \   )
1757         " -l The hardware clock is kept in local time"  #define hwclock_full_usage "\n\n" \
1758           "Query and set hardware clock (RTC)\n" \
1759         "\nOptions:" \
1760         "\n -r Show hardware clock time" \
1761         "\n -s Set system time from hardware clock" \
1762         "\n -w Set hardware clock to system time" \
1763         "\n -u Hardware clock is in UTC" \
1764         "\n -l Hardware clock is in local time" \
1765         "\n -f FILE Use specified device (e.g. /dev/rtc2)" \
1766    
1767  #define id_trivial_usage \  #define id_trivial_usage \
1768         "[OPTIONS]... [USERNAME]"         "[OPTIONS] [USER]"
1769  #define id_full_usage \  #define id_full_usage "\n\n" \
1770         "Print information for USERNAME or the current user" \         "Print information about USER or the current user\n" \
1771         "\n\nOptions:\n" \       "\nOptions:" \
1772   USE_SELINUX( \   IF_SELINUX( \
1773         " -c Prints only the security context\n") \       "\n -Z Print the security context" \
1774         " -g Prints only the group ID\n" \   ) \
1775         " -u Prints only the user ID\n" \       "\n -u Print user ID" \
1776         " -n Print a name instead of a number\n" \       "\n -g Print group ID" \
1777         " -r Prints the real user ID instead of the effective ID"       "\n -G Print supplementary group IDs" \
1778         "\n -n Print name instead of a number" \
1779         "\n -r Print real user ID instead of effective ID" \
1780    
1781  #define id_example_usage \  #define id_example_usage \
1782         "$ id\n" \         "$ id\n" \
1783         "uid=1000(andersen) gid=1000(andersen)\n"         "uid=1000(andersen) gid=1000(andersen)\n"
1784    
1785  #define ifconfig_trivial_usage \  #define ifconfig_trivial_usage \
1786   USE_FEATURE_IFCONFIG_STATUS("[-a]") " <interface> [<address>]"   IF_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]"
1787  #define ifconfig_full_usage \  #define ifconfig_full_usage "\n\n" \
1788         "Configure a network interface" \         "Configure a network interface\n" \
1789         "\n\nOptions:\n" \       "\nOptions:" \
1790   USE_FEATURE_IPV6( \       "\n" \
1791         " [add <address>[/<prefixlen>]]\n") \   IF_FEATURE_IPV6( \
1792   USE_FEATURE_IPV6( \         " [add ADDRESS[/PREFIXLEN]]\n") \
1793         " [del <address>[/<prefixlen>]]\n") \   IF_FEATURE_IPV6( \
1794         " [[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \         " [del ADDRESS[/PREFIXLEN]]\n") \
1795         " [netmask <address>] [dstaddr <address>]\n" \         " [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]\n" \
1796   USE_FEATURE_IFCONFIG_SLIP( \         " [netmask ADDRESS] [dstaddr ADDRESS]\n" \
1797         " [outfill <NN>] [keepalive <NN>]\n") \   IF_FEATURE_IFCONFIG_SLIP( \
1798         " " USE_FEATURE_IFCONFIG_HW("[hw ether <address>] ") "[metric <NN>] [mtu <NN>]\n" \         " [outfill NN] [keepalive NN]\n") \
1799           " " IF_FEATURE_IFCONFIG_HW("[hw ether" IF_FEATURE_HWIB("|infiniband")" ADDRESS] ") "[metric NN] [mtu NN]\n" \
1800         " [[-]trailers] [[-]arp] [[-]allmulti]\n" \         " [[-]trailers] [[-]arp] [[-]allmulti]\n" \
1801         " [multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \         " [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]\n" \
1802   USE_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \   IF_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \
1803         " [mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \         " [mem_start NN] [io_addr NN] [irq NN]\n") \
1804         " [up|down] ..."         " [up|down] ..."
1805    
1806    #define ifenslave_trivial_usage \
1807           "[-cdf] MASTER_IFACE SLAVE_IFACE..."
1808    #define ifenslave_full_usage "\n\n" \
1809           "Configure network interfaces for parallel routing\n" \
1810         "\nOptions:" \
1811         "\n -c, --change-active Change active slave" \
1812         "\n -d, --detach Remove slave interface from bonding device" \
1813         "\n -f, --force Force, even if interface is not Ethernet" \
1814    /*   "\n -r, --receive-slave Create a receive-only slave" */
1815    
1816    #define ifenslave_example_usage \
1817           "To create a bond device, simply follow these three steps:\n" \
1818           "- ensure that the required drivers are properly loaded:\n" \
1819           "  # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \
1820           "- assign an IP address to the bond device:\n" \
1821           "  # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \
1822           "- attach all the interfaces you need to the bond device:\n" \
1823           "  # ifenslave bond0 eth0 eth1 eth2\n" \
1824           "  If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \
1825           "  interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \
1826           "  To detach a dead interface without setting the bond device down:\n" \
1827           "  # ifenslave -d bond0 eth1\n\n" \
1828           "  To set the bond device down and automatically release all the slaves:\n" \
1829           "  # ifconfig bond0 down\n\n" \
1830           "  To change active slave:\n" \
1831           "  # ifenslave -c bond0 eth0\n" \
1832    
1833    #define ifplugd_trivial_usage \
1834           "[OPTIONS]"
1835    #define ifplugd_full_usage "\n\n" \
1836           "Network interface plug detection daemon\n" \
1837         "\nOptions:" \
1838         "\n -n Don't daemonize" \
1839         "\n -s Don't log to syslog" \
1840         "\n -i IFACE Interface" \
1841         "\n -f/-F Treat link detection error as link down/link up" \
1842         "\n (otherwise exit on error)" \
1843         "\n -a Don't up interface at each link probe" \
1844         "\n -M Monitor creation/destruction of interface" \
1845         "\n (otherwise it must exist)" \
1846         "\n -r PROG Script to run" \
1847         "\n -x ARG Extra argument for script" \
1848         "\n -I Don't exit on nonzero exit code from script" \
1849         "\n -p Don't run script on daemon startup" \
1850         "\n -q Don't run script on daemon quit" \
1851         "\n -l Run script on startup even if no cable is detected" \
1852         "\n -t SECS Poll time in seconds" \
1853         "\n -u SECS Delay before running script after link up" \
1854         "\n -d SECS Delay after link down" \
1855         "\n -m MODE API mode (mii, priv, ethtool, wlan, iff, auto)" \
1856         "\n -k Kill running daemon" \
1857    
1858  #define ifup_trivial_usage \  #define ifup_trivial_usage \
1859         "<-ahinv> <ifaces...>"         "[-ain"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] IFACE..."
1860  #define ifup_full_usage \  #define ifup_full_usage "\n\n" \
1861         "Options:\n" \         "Options:" \
1862         " -a De/configure all interfaces automatically\n" \       "\n -a De/configure all interfaces automatically" \
1863         " -i FILE Use FILE for interface definitions\n" \       "\n -i FILE Use FILE for interface definitions" \
1864         " -n Print out what would happen, but don't do it\n" \       "\n -n Print out what would happen, but don't do it" \
1865         " (note that this option doesn't disable mappings)\n" \   IF_FEATURE_IFUPDOWN_MAPPING( \
1866         " -v Print out what would happen before doing it\n" \       "\n (note: doesn't disable mappings)" \
1867         " -m Don't run any mappings\n" \       "\n -m Don't run any mappings" \
1868         " -f Force de/configuration"   ) \
1869         "\n -v Print out what would happen before doing it" \
1870         "\n -f Force de/configuration" \
1871    
1872  #define ifdown_trivial_usage \  #define ifdown_trivial_usage \
1873         "<-ahinv> <ifaces...>"         "[-ain"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] ifaces..."
1874  #define ifdown_full_usage \  #define ifdown_full_usage "\n\n" \
1875         "Options:\n" \         "Options:" \
1876         " -a De/configure all interfaces automatically\n" \       "\n -a De/configure all interfaces automatically" \
1877         " -i FILE Use FILE for interface definitions\n" \       "\n -i FILE Use FILE for interface definitions" \
1878         " -n Print out what would happen, but don't do it\n" \       "\n -n Print out what would happen, but don't do it" \
1879         " (note that this option doesn't disable mappings)\n" \   IF_FEATURE_IFUPDOWN_MAPPING( \
1880         " -v Print out what would happen before doing it\n" \       "\n (note: doesn't disable mappings)" \
1881         " -m Don't run any mappings\n" \       "\n -m Don't run any mappings" \
1882         " -f Force de/configuration"   ) \
1883         "\n -v Print out what would happen before doing it" \
1884         "\n -f Force de/configuration" \
1885    
1886  #define inetd_trivial_usage \  #define inetd_trivial_usage \
1887         "[-f] [-q len] [conf]"         "[-fe] [-q N] [-R N] [CONFFILE]"
1888  #define inetd_full_usage \  #define inetd_full_usage "\n\n" \
1889         "Listen for network connections and launch programs" \         "Listen for network connections and launch programs\n" \
1890         "\n\nOptions:\n" \       "\nOptions:" \
1891         " -f Run in foreground\n" \       "\n -f Run in foreground" \
1892         " -q N Set the size of the socket listen queue to N\n" \       "\n -e Log to stderr" \
1893         " (default: 128)"       "\n -q N    Socket listen queue (default: 128)" \
1894         "\n -R N Pause services after N connects/min" \
1895         "\n (default: 0 - disabled)" \
1896    
1897  #define init_trivial_usage \  #define init_trivial_usage \
1898         ""         ""
1899  #define init_full_usage \  #define init_full_usage "\n\n" \
1900         "Init is the parent of all processes"         "Init is the parent of all processes"
1901    
1902  #define init_notes_usage \  #define init_notes_usage \
1903  "This version of init is designed to be run only by the kernel.\n" \  "This version of init is designed to be run only by the kernel.\n" \
1904  "\n" \  "\n" \
1905  "BusyBox init doesn't support multiple runlevels.  The runlevels field of\n" \  "BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
1906  "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \  "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
1907  "runlevels, use sysvinit.\n" \  "runlevels, use sysvinit.\n" \
1908  "\n" \  "\n" \
1909  "BusyBox init works just fine without an inittab.  If no inittab is found,\n" \  "BusyBox init works just fine without an inittab. If no inittab is found,\n" \
1910  "it has the following default behavior:\n" \  "it has the following default behavior:\n" \
1911  "\n" \  "\n" \
1912  " ::sysinit:/etc/init.d/rcS\n" \  " ::sysinit:/etc/init.d/rcS\n" \
# Line 1389  Line 1930 
1930  "\n" \  "\n" \
1931  " WARNING: This field has a non-traditional meaning for BusyBox init!\n" \  " WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
1932  " The id field is used by BusyBox init to specify the controlling tty for\n" \  " The id field is used by BusyBox init to specify the controlling tty for\n" \
1933  " the specified process to run on.  The contents of this field are\n" \  " the specified process to run on. The contents of this field are\n" \
1934  " appended to \"/dev/\" and used as-is.  There is no need for this field to\n" \  " appended to \"/dev/\" and used as-is. There is no need for this field to\n" \
1935  " be unique, although if it isn't you may have strange results.  If this\n" \  " be unique, although if it isn't you may have strange results. If this\n" \
1936  " field is left blank, the controlling tty is set to the console.  Also\n" \  " field is left blank, the controlling tty is set to the console. Also\n" \
1937  " note that if BusyBox detects that a serial console is in use, then only\n" \  " note that if BusyBox detects that a serial console is in use, then only\n" \
1938  " entries whose controlling tty is either the serial console or /dev/null\n" \  " entries whose controlling tty is either the serial console or /dev/null\n" \
1939  " will be run.  BusyBox init does nothing with utmp.  We don't need no\n" \  " will be run. BusyBox init does nothing with utmp. We don't need no\n" \
1940  " stinkin' utmp.\n" \  " stinkin' utmp.\n" \
1941  "\n" \  "\n" \
1942  " <runlevels>:\n" \  " <runlevels>:\n" \
# Line 1413  Line 1954 
1954  "\n" \  "\n" \
1955  " Run only-once actions:\n" \  " Run only-once actions:\n" \
1956  "\n" \  "\n" \
1957  " 'sysinit' is the first item run on boot.  init waits until all\n" \  " 'sysinit' is the first item run on boot. init waits until all\n" \
1958  " sysinit actions are completed before continuing.  Following the\n" \  " sysinit actions are completed before continuing. Following the\n" \
1959  " completion of all sysinit actions, all 'wait' actions are run.\n" \  " completion of all sysinit actions, all 'wait' actions are run.\n" \
1960  " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \  " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
1961  " the specified task completes.  'once' actions are asynchronous,\n" \  " the specified task completes. 'once' actions are asynchronous,\n" \
1962  " therefore, init does not wait for them to complete.  'restart' is\n" \  " therefore, init does not wait for them to complete. 'restart' is\n" \
1963  " the action taken to restart the init process.  By default this should\n" \  " the action taken to restart the init process. By default this should\n" \
1964  " simply run /sbin/init, but can be a script which runs pivot_root or it\n" \  " simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
1965  " can do all sorts of other interesting things.  The 'ctrlaltdel' init\n" \  " can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
1966  " actions are run when the system detects that someone on the system\n" \  " actions are run when the system detects that someone on the system\n" \
1967  " console has pressed the CTRL-ALT-DEL key combination.  Typically one\n" \  " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
1968  " wants to run 'reboot' at this point to cause the system to reboot.\n" \  " wants to run 'reboot' at this point to cause the system to reboot.\n" \
1969  " Finally the 'shutdown' action specifies the actions to taken when\n" \  " Finally the 'shutdown' action specifies the actions to taken when\n" \
1970  " init is told to reboot.  Unmounting filesystems and disabling swap\n" \  " init is told to reboot. Unmounting filesystems and disabling swap\n" \
1971  " is a very good here.\n" \  " is a very good here.\n" \
1972  "\n" \  "\n" \
1973  " Run repeatedly actions:\n" \  " Run repeatedly actions:\n" \
1974  "\n" \  "\n" \
1975  " 'respawn' actions are run after the 'once' actions.  When a process\n" \  " 'respawn' actions are run after the 'once' actions. When a process\n" \
1976  " started with a 'respawn' action exits, init automatically restarts\n" \  " started with a 'respawn' action exits, init automatically restarts\n" \
1977  " it.  Unlike sysvinit, BusyBox init does not stop processes from\n" \  " it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
1978  " respawning out of control.  The 'askfirst' actions acts just like\n" \  " respawning out of control. The 'askfirst' actions acts just like\n" \
1979  " respawn, except that before running the specified process it\n" \  " respawn, except that before running the specified process it\n" \
1980  " displays the line \"Please press Enter to activate this console.\"\n" \  " displays the line \"Please press Enter to activate this console.\"\n" \
1981  " and then waits for the user to press enter before starting the\n" \  " and then waits for the user to press enter before starting the\n" \
1982  " specified process.\n" \  " specified process.\n" \
1983  "\n" \  "\n" \
1984  " Unrecognized actions (like initdefault) will cause init to emit an\n" \  " Unrecognized actions (like initdefault) will cause init to emit an\n" \
1985  " error message, and then go along with its business.  All actions are\n" \  " error message, and then go along with its business. All actions are\n" \
1986  " run in the order they appear in /etc/inittab.\n" \  " run in the order they appear in /etc/inittab.\n" \
1987  "\n" \  "\n" \
1988  " <process>:\n" \  " <process>:\n" \
# Line 1485  Line 2026 
2026  " ::shutdown:/bin/umount -a -r\n" \  " ::shutdown:/bin/umount -a -r\n" \
2027  " ::shutdown:/sbin/swapoff -a\n"  " ::shutdown:/sbin/swapoff -a\n"
2028    
2029    #define inotifyd_trivial_usage \
2030     "PROG FILE1[:MASK]..."
2031    #define inotifyd_full_usage "\n\n" \
2032           "Run PROG on filesystem changes." \
2033         "\nWhen a filesystem event matching MASK occurs on FILEn," \
2034         "\nPROG ACTUAL_EVENTS FILEn [SUBFILE] is run." \
2035         "\nEvents:" \
2036         "\n a File is accessed" \
2037         "\n c File is modified" \
2038         "\n e Metadata changed" \
2039         "\n w Writable file is closed" \
2040         "\n 0 Unwritable file is closed" \
2041         "\n r File is opened" \
2042         "\n D File is deleted" \
2043         "\n M File is moved" \
2044         "\n u Backing fs is unmounted" \
2045         "\n o Event queue overflowed" \
2046         "\n x File can't be watched anymore" \
2047         "\nIf watching a directory:" \
2048         "\n m Subfile is moved into dir" \
2049         "\n y Subfile is moved out of dir" \
2050         "\n n Subfile is created" \
2051         "\n d Subfile is deleted" \
2052         "\n" \
2053         "\ninotifyd waits for PROG to exit." \
2054         "\nWhen x event happens for all FILEs, inotifyd exits." \
2055    
2056    /* 2.6 style insmod has no options and required filename
2057     * (not module name - .ko can't be omitted) */
2058  #define insmod_trivial_usage \  #define insmod_trivial_usage \
2059         "[OPTION]... MODULE [symbol=value]..."   IF_FEATURE_2_4_MODULES("[OPTIONS] MODULE ") \
2060  #define insmod_full_usage \   IF_NOT_FEATURE_2_4_MODULES("FILE ") \
2061     "[symbol=value]..."
2062    #define insmod_full_usage "\n\n" \
2063         "Load the specified kernel modules into the kernel" \         "Load the specified kernel modules into the kernel" \
2064         "\n\nOptions:\n" \   IF_FEATURE_2_4_MODULES( "\n" \
2065         " -f Force module to load into the wrong kernel version\n" \       "\nOptions:" \
2066         " -k Make module autoclean-able\n" \       "\n -f Force module to load into the wrong kernel version" \
2067         " -v Verbose output\n"  \       "\n -k Make module autoclean-able" \
2068         " -q Quiet output\n" \       "\n -v Verbose" \
2069         " -L Lock to prevent simultaneous loads of a module\n" \       "\n -q Quiet" \
2070   USE_FEATURE_INSMOD_LOAD_MAP( \       "\n -L Lock to prevent simultaneous loads of a module" \
2071         " -m Output load map to stdout\n") \   IF_FEATURE_INSMOD_LOAD_MAP( \
2072         " -o NAME Set internal module name to NAME\n" \       "\n -m Output load map to stdout" \
2073         " -x Do not export externs"   ) \
2074         "\n -o NAME Set internal module name to NAME" \
2075         "\n -x Don't export externs" \
2076     )
2077    
2078    /* -v, -b, -c are ignored */
2079  #define install_trivial_usage \  #define install_trivial_usage \
2080         "[-cgmops] [sources] <dest|directory>"   "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST"
2081  #define install_full_usage \  #define install_full_usage "\n\n" \
2082         "Copy files and set attributes" \         "Copy files and set attributes\n" \
2083         "\n\nOptions:\n" \       "\nOptions:" \
2084         " -c Copy the file, default\n" \       "\n -c Just copy (default)" \
2085         " -d Create directories\n" \       "\n -d Create directories" \
2086         " -g Set group ownership\n" \       "\n -D Create leading target directories" \
2087         " -m Set permission modes\n" \       "\n -s Strip symbol table" \
2088         " -o Set ownership\n" \       "\n -p Preserve date" \
2089         " -p Preserve date\n" \       "\n -o USER Set ownership" \
2090         " -s Strip symbol tables"       "\n -g GRP Set group ownership" \
2091         "\n -m MODE Set permissions" \
2092     IF_SELINUX( \
2093         "\n -Z Set security context" \
2094     )
2095    
2096    #define ionice_trivial_usage \
2097     "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
2098    #define ionice_full_usage "\n\n" \
2099           "Change I/O scheduling class and priority\n" \
2100         "\nOptions:" \
2101         "\n -c Class. 1:realtime 2:best-effort 3:idle" \
2102         "\n -n Priority" \
2103    
2104    /* would need to make the " | " optional depending on more than one selected: */
2105  #define ip_trivial_usage \  #define ip_trivial_usage \
2106         "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}"         "[OPTIONS] {" \
2107  #define ip_full_usage \   IF_FEATURE_IP_ADDRESS("address | ") \
2108     IF_FEATURE_IP_ROUTE("route | ") \
2109     IF_FEATURE_IP_LINK("link | ") \
2110     IF_FEATURE_IP_TUNNEL("tunnel | ") \
2111     IF_FEATURE_IP_RULE("rule") \
2112           "} {COMMAND}"
2113    #define ip_full_usage "\n\n" \
2114         "ip [OPTIONS] OBJECT {COMMAND}\n" \         "ip [OPTIONS] OBJECT {COMMAND}\n" \
2115         "where  OBJECT := {link | addr | route | tunnel |rule}\n" \         "where OBJECT := {" \
2116         "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"   IF_FEATURE_IP_ADDRESS("address | ") \
2117     IF_FEATURE_IP_ROUTE("route | ") \
2118     IF_FEATURE_IP_LINK("link | ") \
2119     IF_FEATURE_IP_TUNNEL("tunnel | ") \
2120     IF_FEATURE_IP_RULE("rule") \
2121           "}\n" \
2122           "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" \
2123    
2124  #define ipaddr_trivial_usage \  #define ipaddr_trivial_usage \
2125         "{ {add|del} IFADDR dev STRING | {show|flush}\n" \         "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
2126         " [ dev STRING ] [ to PREFIX ] }"         " [dev STRING] [to PREFIX] }"
2127  #define ipaddr_full_usage \  #define ipaddr_full_usage "\n\n" \
2128         "ipaddr {add|delete} IFADDR dev STRING\n" \         "ipaddr {add|delete} IFADDR dev STRING\n" \
2129         "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \         "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n" \
2130         " [ to PREFIX ] [ label PATTERN ]\n" \         " [to PREFIX] [label PATTERN]\n" \
2131         " IFADDR := PREFIX | ADDR peer PREFIX\n" \         " IFADDR := PREFIX | ADDR peer PREFIX\n" \
2132         " [ broadcast ADDR ] [ anycast ADDR ]\n" \         " [broadcast ADDR] [anycast ADDR]\n" \
2133         " [ label STRING ] [ scope SCOPE-ID ]\n" \         " [label STRING] [scope SCOPE-ID]\n" \
2134         " SCOPE-ID := [ host | link | global | NUMBER ]"         " SCOPE-ID := [host | link | global | NUMBER]" \
2135    
2136  #define ipcalc_trivial_usage \  #define ipcalc_trivial_usage \
2137         "[OPTION]... <ADDRESS>[[/]<NETMASK>] [NETMASK]"         "[OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]"
2138  #define ipcalc_full_usage \  #define ipcalc_full_usage "\n\n" \
2139         "Calculate IP network settings from a IP address" \         "Calculate IP network settings from a IP address\n" \
2140         "\n\nOptions:" \       "\nOptions:" \
2141         "\n -b --broadcast Display calculated broadcast address" \   IF_FEATURE_IPCALC_LONG_OPTIONS( \
2142         "\n -n --network Display calculated network address" \       "\n -b,--broadcast Display calculated broadcast address" \
2143         "\n -m --netmask Display default netmask for IP" \       "\n -n,--network Display calculated network address" \
2144   USE_FEATURE_IPCALC_FANCY( \       "\n -m,--netmask Display default netmask for IP" \
2145         "\n -p --prefix Display the prefix for IP/NETMASK" \   IF_FEATURE_IPCALC_FANCY( \
2146         "\n -h --hostname Display first resolved host name" \       "\n -p,--prefix Display the prefix for IP/NETMASK" \
2147         "\n -s --silent Don't ever display error messages")       "\n -h,--hostname Display first resolved host name" \
2148         "\n -s,--silent Don't ever display error messages" \
2149     ) \
2150     ) \
2151     IF_NOT_FEATURE_IPCALC_LONG_OPTIONS( \
2152         "\n -b Display calculated broadcast address" \
2153         "\n -n Display calculated network address" \
2154         "\n -m Display default netmask for IP" \
2155     IF_FEATURE_IPCALC_FANCY( \
2156         "\n -p Display the prefix for IP/NETMASK" \
2157         "\n -h Display first resolved host name" \
2158         "\n -s Don't ever display error messages" \
2159     ) \
2160     )
2161    
2162  #define ipcrm_trivial_usage \  #define ipcrm_trivial_usage \
2163         "[-[MQS] key] [-[mqs] id]"         "[-MQS key] [-mqs id]"
2164  #define ipcrm_full_usage \  #define ipcrm_full_usage "\n\n" \
2165         "The upper-case options MQS are used to remove a shared memory segment by a\n" \         "Upper-case options MQS remove an object by shmkey value.\n" \
2166         "segment by a shmkey value. The lower-case options mqs are used\n" \         "Lower-case options remove an object by shmid value.\n" \
2167         "to remove a segment by shmid value.\n" \       "\nOptions:" \
2168         "\n\nOptions:\n" \       "\n -mM Remove memory segment after last detach" \
2169         " -[mM] Remove the memory segment after the last detach\n" \       "\n -qQ Remove message queue" \
2170         " -[qQ] Remove the message queue\n" \       "\n -sS Remove semaphore" \
        " -[sS] Remove the semaphore"  
2171    
2172  #define ipcs_trivial_usage \  #define ipcs_trivial_usage \
2173         "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"         "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
2174  #define ipcs_full_usage \  #define ipcs_full_usage "\n\n" \
2175         " -i Specify a specific resource id\n" \         " -i Show specific resource" \
2176         "Resource specification:\n" \       "\nResource specification:" \
2177         " -m Shared memory segments\n" \       "\n -m Shared memory segments" \
2178         " -q Message queues\n" \       "\n -q Message queues" \
2179         " -s Semaphore arrays\n" \       "\n -s Semaphore arrays" \
2180         " -a All (default)\n" \       "\n -a All (default)" \
2181         "Output format:\n" \       "\nOutput format:" \
2182         " -t Time\n" \       "\n -t Time" \
2183         " -c Creator\n" \       "\n -c Creator" \
2184         " -p Pid\n" \       "\n -p Pid" \
2185         " -l Limits\n" \       "\n -l Limits" \
2186         " -u Summary"       "\n -u Summary" \
2187    
2188  #define iplink_trivial_usage \  #define iplink_trivial_usage \
2189         "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"         "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
2190  #define iplink_full_usage \  #define iplink_full_usage "\n\n" \
2191         "iplink set DEVICE { up | down | arp { on | off } |\n" \         "iplink set DEVICE { up | down | arp | multicast { on | off } |\n" \
2192         " dynamic { on | off } |\n" \         " dynamic { on | off } |\n" \
2193         " mtu MTU }\n" \         " mtu MTU }\n" \
2194         "iplink show [ DEVICE ]"         "iplink show [DEVICE]" \
2195    
2196  #define iproute_trivial_usage \  #define iproute_trivial_usage \
2197         "{ list | flush | { add | del | change | append |\n" \         "{ list | flush | { add | del | change | append |\n" \
2198         " replace | monitor } ROUTE }"         " replace | monitor } ROUTE }"
2199  #define iproute_full_usage \  #define iproute_full_usage "\n\n" \
2200         "iproute { list | flush } SELECTOR\n" \         "iproute { list | flush } SELECTOR\n" \
2201         "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \         "iproute get ADDRESS [from ADDRESS iif STRING]\n" \
2202         " [ oif STRING ]  [ tos TOS ]\n" \         " [oif STRING]  [tos TOS]\n" \
2203         "iproute { add | del | change | append | replace | monitor } ROUTE\n" \         "iproute { add | del | change | append | replace | monitor } ROUTE\n" \
2204         " SELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \         " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" \
2205         " ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"         " ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]\n" \
2206           " [metric METRIC]" \
2207    
2208  #define iprule_trivial_usage \  #define iprule_trivial_usage \
2209         "{[ list | add | del ] RULE}"         "{[list | add | del] RULE}"
2210  #define iprule_full_usage \  #define iprule_full_usage "\n\n" \
2211         "iprule [ list | add | del ] SELECTOR ACTION\n" \         "iprule [list | add | del] SELECTOR ACTION\n" \
2212         " SELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK ]\n" \         " SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n" \
2213         " [ dev STRING ] [ pref NUMBER ]\n" \         " [dev STRING] [pref NUMBER]\n" \
2214         " ACTION := [ table TABLE_ID ] [ nat ADDRESS ]\n" \         " ACTION := [table TABLE_ID] [nat ADDRESS]\n" \
2215         " [ prohibit | reject | unreachable ]\n" \         " [prohibit | reject | unreachable]\n" \
2216         " [ realms [SRCREALM/]DSTREALM ]\n" \         " [realms [SRCREALM/]DSTREALM]\n" \
2217         " TABLE_ID := [ local | main | default | NUMBER ]"         " TABLE_ID := [local | main | default | NUMBER]" \
2218    
2219  #define iptunnel_trivial_usage \  #define iptunnel_trivial_usage \
2220         "{ add | change | del | show } [ NAME ]\n" \         "{ add | change | del | show } [NAME]\n" \
2221         " [ mode { ipip | gre | sit } ]\n" \         " [mode { ipip | gre | sit }]\n" \
2222         " [ remote ADDR ] [ local ADDR ] [ ttl TTL ]"         " [remote ADDR] [local ADDR] [ttl TTL]"
2223  #define iptunnel_full_usage \  #define iptunnel_full_usage "\n\n" \
2224         "iptunnel { add | change | del | show } [ NAME ]\n" \         "iptunnel { add | change | del | show } [NAME]\n" \
2225         " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \         " [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n" \
2226         " [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \         " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \
2227         " [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]"         " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \
2228    
2229    #define kbd_mode_trivial_usage \
2230           "[-a|k|s|u] [-C TTY]"
2231    #define kbd_mode_full_usage "\n\n" \
2232           "Report or set the keyboard mode\n" \
2233         "\nOptions:" \
2234         "\n -a Default (ASCII)" \
2235         "\n -k Medium-raw (keyboard)" \
2236         "\n -s Raw (scancode)" \
2237         "\n -u Unicode (utf-8)" \
2238         "\n -C TTY Affect TTY instead of /dev/tty" \
2239    
2240  #define kill_trivial_usage \  #define kill_trivial_usage \
2241         "[-l] [-signal] process-id [process-id ...]"         "[-l] [-SIG] PID..."
2242  #define kill_full_usage \  #define kill_full_usage "\n\n" \
2243         "Send a signal (default is TERM) to the specified process(es)" \         "Send a signal (default: TERM) to given PIDs\n" \
2244         "\n\nOptions:\n" \       "\nOptions:" \
2245         " -l List all signal names and numbers"       "\n -l List all signal names and numbers" \
2246    /*   "\n -s SIG Yet another way of specifying SIG" */ \
2247    
2248  #define kill_example_usage \  #define kill_example_usage \
2249         "$ ps | grep apache\n" \         "$ ps | grep apache\n" \
2250         "252 root     root     S [apache]\n" \         "252 root     root     S [apache]\n" \
# Line 1629  Line 2256 
2256         "$ kill 252\n"         "$ kill 252\n"
2257    
2258  #define killall_trivial_usage \  #define killall_trivial_usage \
2259         "[-l] [-q] [-signal] process-name [process-name ...]"         "[-l] [-q] [-SIG] PROCESS_NAME..."
2260  #define killall_full_usage \  #define killall_full_usage "\n\n" \
2261         "Send a signal (default is TERM) to the specified process(es)" \         "Send a signal (default: TERM) to given processes\n" \
2262         "\n\nOptions:\n" \       "\nOptions:" \
2263         " -l List all signal names and numbers\n" \       "\n -l List all signal names and numbers" \
2264         " -q Do not complain if no processes were killed"  /*   "\n -s SIG Yet another way of specifying SIG" */ \
2265         "\n -q Don't complain if no processes were killed" \
2266    
2267  #define killall_example_usage \  #define killall_example_usage \
2268         "$ killall apache\n"         "$ killall apache\n"
2269    
2270  #define killall5_trivial_usage \  #define killall5_trivial_usage \
2271         "[-l] [-signal]"         "[-l] [-SIG] [-o PID]..."
2272  #define killall5_full_usage \  #define killall5_full_usage "\n\n" \
2273         "Send a signal (default is TERM) to all processes outside current session" \         "Send a signal (default: TERM) to all processes outside current session\n" \
2274         "\n\nOptions:\n" \       "\nOptions:" \
2275         " -l List all signal names and numbers\n" \       "\n -l List all signal names and numbers" \
2276         "\n -o PID Don't signal this PID" \
2277    /*   "\n -s SIG Yet another way of specifying SIG" */ \
2278    
2279  #define klogd_trivial_usage \  #define klogd_trivial_usage \
2280         "[-c n] [-n]"         "[-c N] [-n]"
2281  #define klogd_full_usage \  #define klogd_full_usage "\n\n" \
2282         "Kernel logger" \         "Kernel logger\n" \
2283         "\n\nOptions:\n" \       "\nOptions:" \
2284         " -c n Sets the default log level of console messages to n\n" \       "\n -c N Only messages with level < N are printed to console" \
2285         " -n Run as foreground process"       "\n -n Run in foreground" \
2286    
2287  #define length_trivial_usage \  #define length_trivial_usage \
2288         "STRING"         "STRING"
2289  #define length_full_usage \  #define length_full_usage "\n\n" \
2290         "Print out the length of the specified STRING"         "Print STRING's length"
2291    
2292  #define length_example_usage \  #define length_example_usage \
2293         "$ length Hello\n" \         "$ length Hello\n" \
2294         "5\n"         "5\n"
2295    
2296  #define less_trivial_usage \  #define less_trivial_usage \
2297         "[-EMNmh~?] FILE1 FILE2..."         "[-EMNmh~I?] [FILE]..."
2298  #define less_full_usage \  #define less_full_usage "\n\n" \
2299         "View a file or list of files. The position within files can be\n" \         "View FILE (or stdin) one screenful at a time\n" \
2300         "changed, and files can be manipulated in various ways." \       "\nOptions:" \
2301         "\n\nOptions:\n" \       "\n -E Quit once the end of a file is reached" \
2302         " -E Quit once the end of a file is reached\n" \       "\n -M,-m Display status line with line numbers" \
2303         " -M Display a status line containing the current line numbers\n" \       "\n and percentage through the file" \
2304         " and the percentage through the file\n" \       "\n -N Prefix line number to each line" \
2305         " -N Prefix line numbers to each line\n" \       "\n -I Ignore case in all searches" \
2306         " -m Display a status line containing the percentage through the\n" \       "\n -~ Suppress ~s displayed past the end of the file" \
2307         " file\n" \  
2308         " -~ Suppress ~s displayed when input past the end of the file is\n" \  #define linux32_trivial_usage NOUSAGE_STR
2309         " reached"  #define linux32_full_usage ""
2310    #define linux64_trivial_usage NOUSAGE_STR
2311    #define linux64_full_usage ""
2312    
2313    #define linuxrc_trivial_usage NOUSAGE_STR
2314    #define linuxrc_full_usage ""
2315    
2316  #define setarch_trivial_usage \  #define setarch_trivial_usage \
2317         "<personality> <program> [args ...]"         "personality PROG ARGS"
2318  #define setarch_full_usage \  #define setarch_full_usage "\n\n" \
2319         "Personality may be:\n" \         "Personality may be:\n" \
2320         " linux32 Set 32bit uname emulation\n" \         " linux32 Set 32bit uname emulation\n" \
2321         " linux64 Set 64bit uname emulation"         " linux64 Set 64bit uname emulation" \
2322    
2323  #define ln_trivial_usage \  #define ln_trivial_usage \
2324         "[OPTION] TARGET... LINK_NAME|DIRECTORY"         "[OPTIONS] TARGET... LINK|DIR"
2325  #define ln_full_usage \  #define ln_full_usage "\n\n" \
2326         "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \         "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" \
2327         "You may use '--' to indicate that all following arguments are non-options." \       "\nOptions:" \
2328         "\n\nOptions:\n" \       "\n -s Make symlinks instead of hardlinks" \
2329         " -s Make symbolic links instead of hard links\n" \       "\n -f Remove existing destinations" \
2330         " -f Remove existing destination files\n" \       "\n -n Don't dereference symlinks - treat like normal file" \
2331         " -n No dereference symlinks - treat like normal file\n" \       "\n -b Make a backup of the target (if exists) before link operation" \
2332         " -b Make a backup of the target (if exists) before link operation\n" \       "\n -S suf Use suffix instead of ~ when making backup files" \
2333         " -S suf Use suffix instead of ~ when making backup files"  
2334  #define ln_example_usage \  #define ln_example_usage \
2335         "$ ln -s BusyBox /tmp/ls\n" \         "$ ln -s BusyBox /tmp/ls\n" \
2336         "$ ls -l /tmp/ls\n" \         "$ ls -l /tmp/ls\n" \
2337         "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"         "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"
2338    
2339    #define load_policy_trivial_usage NOUSAGE_STR
2340    #define load_policy_full_usage ""
2341    
2342  #define loadfont_trivial_usage \  #define loadfont_trivial_usage \
2343         "< font"         "< font"
2344  #define loadfont_full_usage \  #define loadfont_full_usage "\n\n" \
2345         "Load a console font from standard input"         "Load a console font from stdin" \
2346    /*   "\n -C TTY Affect TTY instead of /dev/tty" */ \
2347    
2348  #define loadfont_example_usage \  #define loadfont_example_usage \
2349         "$ loadfont < /etc/i18n/fontname\n"         "$ loadfont < /etc/i18n/fontname\n"
2350    
2351  #define loadkmap_trivial_usage \  #define loadkmap_trivial_usage \
2352         "< keymap"         "< keymap"
2353  #define loadkmap_full_usage \  #define loadkmap_full_usage "\n\n" \
2354         "Load a binary keyboard translation table from standard input"         "Load a binary keyboard translation table from stdin\n" \
2355    /*   "\n -C TTY Affect TTY instead of /dev/tty" */ \
2356    
2357  #define loadkmap_example_usage \  #define loadkmap_example_usage \
2358         "$ loadkmap < /etc/i18n/lang-keymap\n"         "$ loadkmap < /etc/i18n/lang-keymap\n"
2359    
2360  #define logger_trivial_usage \  #define logger_trivial_usage \
2361         "[OPTION]... [MESSAGE]"         "[OPTIONS] [MESSAGE]"
2362  #define logger_full_usage \  #define logger_full_usage "\n\n" \
2363         "Write MESSAGE to the system log.  If MESSAGE is omitted, log stdin." \         "Write MESSAGE (or stdin) to syslog\n" \
2364         "\n\nOptions:\n" \       "\nOptions:" \
2365         " -s Log to stderr as well as the system log\n" \       "\n -s Log to stderr as well as the system log" \
2366         " -t TAG Log using the specified tag (defaults to user name)\n" \       "\n -t TAG Log using the specified tag (defaults to user name)" \
2367         " -p PRIO Enter the message with the specified priority.\n" \       "\n -p PRIO Priority (numeric or facility.level pair)" \
2368         " This may be numerical or a 'facility.level' pair."  
2369  #define logger_example_usage \  #define logger_example_usage \
2370         "$ logger \"hello\"\n"         "$ logger \"hello\"\n"
2371    
2372  #define login_trivial_usage \  #define login_trivial_usage \
2373         "[OPTION]... [username] [ENV=VAR ...]"         "[-p] [-h HOST] [[-f] USER]"
2374  #define login_full_usage \  #define login_full_usage "\n\n" \
2375         "Begin a new session on the system" \         "Begin a new session on the system\n" \
2376         "\n\nOptions:\n" \       "\nOptions:" \
2377         " -f Do not authenticate (user already authenticated)\n" \       "\n -f Don't authenticate (user already authenticated)" \
2378         " -h Name of the remote host for this login\n" \       "\n -h Name of the remote host" \
2379         " -p Preserve environment"       "\n -p Preserve environment" \
2380    
2381  #define logname_trivial_usage \  #define logname_trivial_usage \
2382         ""         ""
2383  #define logname_full_usage \  #define logname_full_usage "\n\n" \
2384         "Print the name of the current user"         "Print the name of the current user"
2385  #define logname_example_usage \  #define logname_example_usage \
2386         "$ logname\n" \         "$ logname\n" \
2387         "root\n"         "root\n"
2388    
2389  #define logread_trivial_usage \  #define logread_trivial_usage \
2390         "[OPTION]..."         "[OPTIONS]"
2391  #define logread_full_usage \  #define logread_full_usage "\n\n" \
2392         "Show the messages from syslogd (using circular buffer)" \         "Show messages in syslogd's circular buffer\n" \
2393         "\n\nOptions:\n" \       "\nOptions:" \
2394         " -f Output data as the log grows"       "\n -f Output data as log grows" \
2395    
2396  #define losetup_trivial_usage \  #define losetup_trivial_usage \
2397         "[-o OFFSET] [-d] LOOPDEVICE [FILE]]"         "[-o OFS] LOOPDEV FILE - associate loop devices\n" \
2398  #define losetup_full_usage \         " losetup -d LOOPDEV - disassociate\n" \
2399         "(Dis)associate LOOPDEVICE with FILE, or display current associations" \         " losetup [-f] - show"
2400         "\n\nOptions:\n" \  #define losetup_full_usage "\n\n" \
2401         " -d Disassociate LOOPDEVICE\n" \         "Options:" \
2402         " -o OFFSET Start OFFSET bytes into FILE"       "\n -o OFS Start OFS bytes into FILE" \
2403         "\n -f Show first free loop device" \
2404    
2405  #define losetup_notes_usage \  #define losetup_notes_usage \
2406         "No arguments will display all current associations.\n" \         "No arguments will display all current associations.\n" \
2407         "One argument (losetup /dev/loop1) will display the current association\n" \         "One argument (losetup /dev/loop1) will display the current association\n" \
2408         "(if any), or disassociate it (with -d).  The display shows the offset\n" \         "(if any), or disassociate it (with -d). The display shows the offset\n" \
2409         "and filename of the file the loop device is currently bound to.\n\n" \         "and filename of the file the loop device is currently bound to.\n\n" \
2410         "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \         "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
2411         "with an optional offset (-o 12345).  Encryption is not yet supported.\n\n"         "with an optional offset (-o 12345). Encryption is not yet supported.\n" \
2412           "losetup -f will show the first loop free loop device\n\n"
2413    
2414    #define lpd_trivial_usage \
2415           "SPOOLDIR [HELPER [ARGS]]"
2416    #define lpd_full_usage "\n\n" \
2417           "SPOOLDIR must contain (symlinks to) device nodes or directories" \
2418         "\nwith names matching print queue names. In the first case, jobs are" \
2419         "\nsent directly to the device. Otherwise each job is stored in queue" \
2420         "\ndirectory and HELPER program is called. Name of file to print" \
2421         "\nis passed in $DATAFILE variable." \
2422         "\nExample:" \
2423         "\n tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" \
2424    
2425    #define lpq_trivial_usage \
2426           "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]"
2427    #define lpq_full_usage "\n\n" \
2428           "Options:" \
2429         "\n -P lp service to connect to (else uses $PRINTER)" \
2430         "\n -d Delete jobs" \
2431         "\n -f Force any waiting job to be printed" \
2432         "\n -s Short display" \
2433    
2434    #define lpr_trivial_usage \
2435           "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..."
2436    /* -C CLASS exists too, not shown.
2437     * CLASS is supposed to be printed on banner page, if one is requested */
2438    #define lpr_full_usage "\n\n" \
2439           "Options:" \
2440         "\n -P lp service to connect to (else uses $PRINTER)"\
2441         "\n -m Send mail on completion" \
2442         "\n -h Print banner page too" \
2443         "\n -V Verbose" \
2444    
2445  #define ls_trivial_usage \  #define ls_trivial_usage \
2446         "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \         "[-1Aa" IF_FEATURE_LS_TIMESTAMPS("c") "Cd" \
2447   USE_FEATURE_LS_TIMESTAMPS("e") USE_FEATURE_LS_FILETYPES("F") "iln" \   IF_FEATURE_LS_TIMESTAMPS("e") IF_FEATURE_LS_FILETYPES("F") "iln" \
2448   USE_FEATURE_LS_FILETYPES("p") USE_FEATURE_LS_FOLLOWLINKS("L") \   IF_FEATURE_LS_FILETYPES("p") IF_FEATURE_LS_FOLLOWLINKS("L") \
2449   USE_FEATURE_LS_RECURSIVE("R") USE_FEATURE_LS_SORTFILES("rS") "s" \   IF_FEATURE_LS_RECURSIVE("R") IF_FEATURE_LS_SORTFILES("rS") "s" \
2450   USE_FEATURE_AUTOWIDTH("T") USE_FEATURE_LS_TIMESTAMPS("tu") \   IF_FEATURE_AUTOWIDTH("T") IF_FEATURE_LS_TIMESTAMPS("tu") \
2451   USE_FEATURE_LS_SORTFILES("v") USE_FEATURE_AUTOWIDTH("w") "x" \   IF_FEATURE_LS_SORTFILES("v") IF_FEATURE_AUTOWIDTH("w") "x" \
2452   USE_FEATURE_LS_SORTFILES("X") USE_FEATURE_HUMAN_READABLE("h") "k" \   IF_FEATURE_LS_SORTFILES("X") IF_FEATURE_HUMAN_READABLE("h") "k" \
2453   USE_SELINUX("K") "] [filenames...]"   IF_SELINUX("K") "] [FILE]..."
2454  #define ls_full_usage \  #define ls_full_usage "\n\n" \
2455         "List directory contents" \         "List directory contents\n" \
2456         "\n\nOptions:" \       "\nOptions:" \
2457         "\n -1 List files in a single column" \       "\n -1 List in a single column" \
2458         "\n -A Do not list implied . and .." \       "\n -A Don't list . and .." \
2459         "\n -a Do not hide entries starting with ." \       "\n -a Don't hide entries starting with ." \
2460         "\n -C List entries by columns" \       "\n -C List by columns" \
2461   USE_FEATURE_LS_TIMESTAMPS( \   IF_FEATURE_LS_TIMESTAMPS( \
2462         "\n -c With -l: show ctime") \       "\n -c With -l: sort by ctime") \
2463   USE_FEATURE_LS_COLOR( \   IF_FEATURE_LS_COLOR( \
2464         "\n --color[={always,never,auto}] Control coloring") \       "\n --color[={always,never,auto}] Control coloring") \
2465         "\n -d List directory entries instead of contents" \       "\n -d List directory entries instead of contents" \
2466   USE_FEATURE_LS_TIMESTAMPS( \   IF_FEATURE_LS_TIMESTAMPS( \
2467         "\n -e List both full date and full time") \       "\n -e List full date and time") \
2468   USE_FEATURE_LS_FILETYPES( \   IF_FEATURE_LS_FILETYPES( \
2469         "\n -F Append indicator (one of */=@|) to entries") \       "\n -F Append indicator (one of */=@|) to entries") \
2470         "\n -i List the i-node for each file" \       "\n -i List inode numbers" \
2471         "\n -l Use a long listing format" \       "\n -l Long listing format" \
2472         "\n -n List numeric UIDs and GIDs instead of names" \       "\n -n List numeric UIDs and GIDs instead of names" \
2473   USE_FEATURE_LS_FILETYPES( \   IF_FEATURE_LS_FILETYPES( \
2474         "\n -p Append indicator (one of /=@|) to entries") \       "\n -p Append indicator (one of /=@|) to entries") \
2475   USE_FEATURE_LS_FOLLOWLINKS( \   IF_FEATURE_LS_FOLLOWLINKS( \
2476         "\n -L List entries pointed to by symbolic links") \       "\n -L List entries pointed to by symlinks") \
2477   USE_FEATURE_LS_RECURSIVE( \   IF_FEATURE_LS_RECURSIVE( \
2478         "\n -R List subdirectories recursively") \       "\n -R Recurse") \
2479   USE_FEATURE_LS_SORTFILES( \   IF_FEATURE_LS_SORTFILES( \
2480         "\n -r Sort the listing in reverse order") \       "\n -r Sort in reverse order") \
2481   USE_FEATURE_LS_SORTFILES( \   IF_FEATURE_LS_SORTFILES( \
2482         "\n -S Sort the listing by file size") \       "\n -S Sort by file size") \
2483         "\n -s List the size of each file, in blocks" \       "\n -s List the size of each file, in blocks" \
2484   USE_FEATURE_AUTOWIDTH( \   IF_FEATURE_AUTOWIDTH( \
2485         "\n -T NUM Assume Tabstop every NUM columns") \       "\n -T N Assume tabstop every N columns") \
2486   USE_FEATURE_LS_TIMESTAMPS( \   IF_FEATURE_LS_TIMESTAMPS( \
2487         "\n -t With -l: show modification time") \       "\n -t With -l: sort by modification time") \
2488   USE_FEATURE_LS_TIMESTAMPS( \   IF_FEATURE_LS_TIMESTAMPS( \
2489         "\n -u With -l: show access time") \       "\n -u With -l: sort by access time") \
2490   USE_FEATURE_LS_SORTFILES( \   IF_FEATURE_LS_SORTFILES( \
2491         "\n -v Sort the listing by version") \       "\n -v Sort by version") \
2492   USE_FEATURE_AUTOWIDTH( \   IF_FEATURE_AUTOWIDTH( \
2493         "\n -w NUM Assume the terminal is NUM columns wide") \       "\n -w N Assume the terminal is N columns wide") \
2494         "\n -x List entries by lines instead of by columns" \       "\n -x List by lines" \
2495   USE_FEATURE_LS_SORTFILES( \   IF_FEATURE_LS_SORTFILES( \
2496         "\n -X Sort the listing by extension") \       "\n -X Sort by extension") \
2497   USE_FEATURE_HUMAN_READABLE( \   IF_FEATURE_HUMAN_READABLE( \
2498         "\n -h Print sizes in human readable format (e.g., 1K 243M 2G)") \       "\n -h List sizes in human readable format (1K 243M 2G)") \
2499   USE_SELINUX( \   IF_SELINUX( \
2500         "\n -k Print security context") \       "\n -k List security context") \
2501   USE_SELINUX( \   IF_SELINUX( \
2502         "\n -K Print security context in long format")       "\n -K List security context in long format") \
2503     IF_SELINUX( \
2504         "\n -Z List security context and permission") \
2505    
2506  #define lsattr_trivial_usage \  #define lsattr_trivial_usage \
2507         "[-Radlv] [files...]"         "[-Radlv] [FILE]..."
2508  #define lsattr_full_usage \  #define lsattr_full_usage "\n\n" \
2509         "List file attributes on an ext2 fs" \         "List file attributes on an ext2 fs\n" \
2510         "\n\nOptions:\n" \       "\nOptions:" \
2511         " -R Recursively list subdirectories\n" \       "\n -R Recurse" \
2512         " -a Do not hide entries starting with .\n" \       "\n -a Don't hide entries starting with ." \
2513         " -d List directory entries instead of contents\n" \       "\n -d List directory entries instead of contents" \
2514         " -l Print long flag names\n" \       "\n -l List long flag names" \
2515         " -v List the file's version/generation number"       "\n -v List the file's version/generation number" \
2516    
2517  #define lsmod_trivial_usage \  #define lsmod_trivial_usage \
2518         ""         ""
2519  #define lsmod_full_usage \  #define lsmod_full_usage "\n\n" \
2520         "List the currently loaded kernel modules"         "List the currently loaded kernel modules"
2521    
2522  #ifdef CONFIG_FEATURE_MAKEDEVS_LEAF  #define lspci_trivial_usage \
2523           "[-mk]"
2524    #define lspci_full_usage "\n\n" \
2525           "List all PCI devices" \
2526         "\n" \
2527         "\n -m Parseable output" \
2528         "\n -k Show driver" \
2529    
2530    #define lsusb_trivial_usage NOUSAGE_STR
2531    #define lsusb_full_usage ""
2532    
2533    #if ENABLE_FEATURE_MAKEDEVS_LEAF
2534  #define makedevs_trivial_usage \  #define makedevs_trivial_usage \
2535         "NAME TYPE MAJOR MINOR FIRST LAST [s]"         "NAME TYPE MAJOR MINOR FIRST LAST [s]"
2536  #define makedevs_full_usage \  #define makedevs_full_usage "\n\n" \
2537         "Create a range of block or character special files\n\n" \         "Create a range of block or character special files" \
2538         "TYPEs include:\n" \       "\n" \
2539         " b: Make a block (buffered) device\n" \       "\nTYPE is:" \
2540         " c or u: Make a character (un-buffered) device\n" \       "\n b Block device" \
2541         " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes\n" \       "\n c Character device" \
2542         "\n" \       "\n f FIFO, MAJOR and MINOR are ignored" \
2543         "FIRST specifies the number appended to NAME to create the first device.\n" \       "\n" \
2544         "LAST specifies the number of the last item that should be created\n" \       "\nFIRST..LAST specify numbers appended to NAME." \
2545         "If 's' is the last argument, the base device is created as well.\n\n" \       "\nIf 's' is the last argument, the base device is created as well." \
2546         "For example:\n" \       "\n" \
2547         " makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63\n" \       "\nExamples:" \
2548         " makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"       "\n makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63" \
2549         "\n makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
2550  #define makedevs_example_usage \  #define makedevs_example_usage \
2551         "# makedevs /dev/ttyS c 4 66 2 63\n" \         "# makedevs /dev/ttyS c 4 66 2 63\n" \
2552         "[creates ttyS2-ttyS63]\n" \         "[creates ttyS2-ttyS63]\n" \
# Line 1862  Line 2554 
2554         "[creates hda,hda1-hda8]\n"         "[creates hda,hda1-hda8]\n"
2555  #endif  #endif
2556    
2557  #ifdef CONFIG_FEATURE_MAKEDEVS_TABLE  #if ENABLE_FEATURE_MAKEDEVS_TABLE
2558  #define makedevs_trivial_usage \  #define makedevs_trivial_usage \
2559         "[-d device_table] rootdir"         "[-d device_table] rootdir"
2560  #define makedevs_full_usage \  #define makedevs_full_usage "\n\n" \
2561         "Create a range of special files as specified in a device table.\n" \         "Create a range of special files as specified in a device table.\n" \
2562         "Device table entries take the form of:\n" \         "Device table entries take the form of:\n" \
2563         "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \         "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
2564         "Where name is the file name, type can be one of:\n" \         "Where name is the file name, type can be one of:\n" \
2565         " f A regular file\n" \         " f Regular file\n" \
2566         " d Directory\n" \         " d Directory\n" \
2567         " c Character special device file\n" \         " c Character device\n" \
2568         " b Block special device file\n" \         " b Block device\n" \
2569         " p Fifo (named pipe)\n" \         " p Fifo (named pipe)\n" \
2570         "uid is the user id for the target file, gid is the group id for the\n" \         "uid is the user id for the target file, gid is the group id for the\n" \
2571         "target file.  The rest of the entries (major, minor, etc) apply to\n" \         "target file. The rest of the entries (major, minor, etc) apply to\n" \
2572         "to device special files.  A '-' may be used for blank entries."         "to device special files. A '-' may be used for blank entries."
2573  #define makedevs_example_usage \  #define makedevs_example_usage \
2574         "For example:\n" \         "For example:\n" \
2575         "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n" \         "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
# Line 1896  Line 2588 
2588         "/dev/hda[0-15]\n"         "/dev/hda[0-15]\n"
2589  #endif  #endif
2590    
2591    #define makemime_trivial_usage \
2592           "[OPTIONS] [FILE]..."
2593    #define makemime_full_usage "\n\n" \
2594           "Create multipart MIME-encoded message from FILEs\n" \
2595    /*     "Transfer encoding is base64, disposition is inline (not attachment)\n" */ \
2596         "\nOptions:" \
2597         "\n -o FILE Output. Default: stdout" \
2598         "\n -a HDR Add header. Examples:" \
2599         "\n \"From: user@host.org\", \"Date: `date -R`\"" \
2600         "\n -c CT Content type. Default: text/plain" \
2601         "\n -C CS   Charset. Default: " CONFIG_FEATURE_MIME_CHARSET \
2602    /*   "\n -e ENC Transfer encoding. Ignored. base64 is assumed" */ \
2603         "\n" \
2604         "\nOther options are silently ignored" \
2605    
2606    #define man_trivial_usage \
2607           "[OPTIONS] [MANPAGE]..."
2608    #define man_full_usage "\n\n" \
2609           "Format and display manual page\n" \
2610         "\nOptions:" \
2611         "\n -a      Display all pages" \
2612         "\n -w Show page locations" \
2613    
2614    #define matchpathcon_trivial_usage \
2615           "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]"
2616    #define matchpathcon_full_usage "\n\n" \
2617           " -n Don't display path" \
2618         "\n -N Don't use translations" \
2619         "\n -f Use alternate file_context file" \
2620         "\n -p Use prefix to speed translations" \
2621         "\n -V Verify file context on disk matches defaults" \
2622    
2623  #define md5sum_trivial_usage \  #define md5sum_trivial_usage \
2624         "[OPTION] [FILEs...]" \         "[OPTIONS] [FILE]..." \
2625   USE_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: md5sum [OPTION] -c [FILE]")   IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: md5sum [OPTIONS] -c [FILE]")
2626  #define md5sum_full_usage \  #define md5sum_full_usage "\n\n" \
2627         "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \         "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \
2628         "\n\nOptions:\n" \   IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2629         "With no FILE, or when FILE is -, read standard input." \       "\nOptions:" \
2630   USE_FEATURE_MD5_SHA1_SUM_CHECK("\n\n" \       "\n -c Check sums against given list" \
2631         " -c Check MD5 sums against given list\n" \       "\n -s Don't output anything, status code shows success" \
2632         "\nThe following two options are useful only when verifying checksums:\n" \       "\n -w Warn about improperly formatted checksum lines" \
2633         " -s Don't output anything, status code shows success\n" \   )
2634         " -w Warn about improperly formatted MD5 checksum lines")  
2635  #define md5sum_example_usage \  #define md5sum_example_usage \
2636         "$ md5sum < busybox\n" \         "$ md5sum < busybox\n" \
2637         "6fd11e98b98a58f64ff3398d7b324003\n" \         "6fd11e98b98a58f64ff3398d7b324003\n" \
# Line 1918  Line 2642 
2642         "busybox: OK\n" \         "busybox: OK\n" \
2643         "^D\n"         "^D\n"
2644    
2645    #define sha1sum_trivial_usage \
2646           "[OPTIONS] [FILE]..." \
2647     IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha1sum [OPTIONS] -c [FILE]")
2648    #define sha1sum_full_usage "\n\n" \
2649           "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums" \
2650     IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2651         "\nOptions:" \
2652         "\n -c Check sums against given list" \
2653         "\n -s Don't output anything, status code shows success" \
2654         "\n -w Warn about improperly formatted checksum lines" \
2655     )
2656    
2657    #define sha256sum_trivial_usage \
2658           "[OPTIONS] [FILE]..." \
2659     IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha256sum [OPTIONS] -c [FILE]")
2660    #define sha256sum_full_usage "\n\n" \
2661           "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA256 checksums" \
2662     IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2663         "\nOptions:" \
2664         "\n -c Check sums against given list" \
2665         "\n -s Don't output anything, status code shows success" \
2666         "\n -w Warn about improperly formatted checksum lines" \
2667     )
2668    
2669    #define sha512sum_trivial_usage \
2670           "[OPTIONS] [FILE]..." \
2671     IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha512sum [OPTIONS] -c [FILE]")
2672    #define sha512sum_full_usage "\n\n" \
2673           "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA512 checksums" \
2674     IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2675         "\nOptions:" \
2676         "\n -c Check sums against given list" \
2677         "\n -s Don't output anything, status code shows success" \
2678         "\n -w Warn about improperly formatted checksum lines" \
2679     )
2680    
2681  #define mdev_trivial_usage \  #define mdev_trivial_usage \
2682         "[-s]"         "[-s]"
2683  #define mdev_full_usage \  #define mdev_full_usage "\n\n" \
2684         " -s Scan /sys and populate /dev during system boot\n\n" \         " -s Scan /sys and populate /dev during system boot\n" \
2685         "Called with no options (via hotplug) it uses environment variables\n" \         "\n" \
2686         "to determine which device to add/remove."         "It can be run by kernel as a hotplug helper. To activate it:\n" \
2687           " echo /sbin/mdev > /proc/sys/kernel/hotplug\n" \
2688     IF_FEATURE_MDEV_CONF( \
2689           "It uses /etc/mdev.conf with lines\n" \
2690           "[-]DEVNAME UID:GID PERM" \
2691     IF_FEATURE_MDEV_RENAME(" [>|=PATH]") \
2692     IF_FEATURE_MDEV_EXEC(" [@|$|*PROG]") \
2693     ) \
2694    
2695  #define mdev_notes_usage "" \  #define mdev_notes_usage "" \
2696   USE_FEATURE_MDEV_CONFIG( \   IF_FEATURE_MDEV_CONFIG( \
2697         "The mdev config file contains lines that look like:\n" \         "The mdev config file contains lines that look like:\n" \
2698         "  hd[a-z][0-9]* 0:3 660\n\n" \         "  hd[a-z][0-9]* 0:3 660\n\n" \
2699         "That's device name (with regex match), uid:gid, and permissions.\n\n" \         "That's device name (with regex match), uid:gid, and permissions.\n\n" \
2700   USE_FEATURE_MDEV_EXEC( \   IF_FEATURE_MDEV_EXEC( \
2701         "Optionally, that can be followed (on the same line) by a special character\n" \         "Optionally, that can be followed (on the same line) by a special character\n" \
2702         "and a command line to run after creating/before deleting the corresponding\n" \         "and a command line to run after creating/before deleting the corresponding\n" \
2703         "device(s).  The environment variable $MDEV indicates the active device node\n" \         "device(s). The environment variable $MDEV indicates the active device node\n" \
2704         "(which is useful if it's a regex match).  For example:\n\n" \         "(which is useful if it's a regex match). For example:\n\n" \
2705         "  hdc root:cdrom 660  *ln -s $MDEV cdrom\n\n" \         "  hdc root:cdrom 660  *ln -s $MDEV cdrom\n\n" \
2706         "The special characters are @ (run after creating), $ (run before deleting),\n" \         "The special characters are @ (run after creating), $ (run before deleting),\n" \
2707         "and * (run both after creating and before deleting).  The commands run in\n" \         "and * (run both after creating and before deleting). The commands run in\n" \
2708         "the /dev directory, and use system() which calls /bin/sh.\n\n" \         "the /dev directory, and use system() which calls /bin/sh.\n\n" \
2709   ) \   ) \
2710         "Config file parsing stops on the first matching line.  If no config\n"\         "Config file parsing stops on the first matching line. If no config\n" \
2711         "entry is matched, devices are created with default 0:0 660.  (Make\n"\         "entry is matched, devices are created with default 0:0 660. (Make\n" \
2712         "the last line match .* to override this.)\n\n" \         "the last line match .* to override this.)\n\n" \
2713   )   )
2714    
2715  #define mesg_trivial_usage \  #define mesg_trivial_usage \
2716         "[y|n]"         "[y|n]"
2717  #define mesg_full_usage \  #define mesg_full_usage "\n\n" \
2718         "Control write access to your terminal\n" \         "Control write access to your terminal\n" \
2719         " y Allow write access to your terminal\n" \         " y Allow write access to your terminal\n" \
2720         " n Disallow write access to your terminal"         " n Disallow write access to your terminal"
2721    
2722    #define microcom_trivial_usage \
2723           "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
2724    #define microcom_full_usage "\n\n" \
2725           "Copy bytes for stdin to TTY and from TTY to stdout\n" \
2726         "\nOptions:" \
2727         "\n -d Wait up to DELAY ms for TTY output before sending every" \
2728         "\n next byte to it" \
2729         "\n -t Exit if both stdin and TTY are silent for TIMEOUT ms" \
2730         "\n -s Set serial line to SPEED" \
2731         "\n -X Disable special meaning of NUL and Ctrl-X from stdin" \
2732    
2733  #define mkdir_trivial_usage \  #define mkdir_trivial_usage \
2734         "[OPTION] DIRECTORY..."         "[OPTIONS] DIRECTORY..."
2735  #define mkdir_full_usage \  #define mkdir_full_usage "\n\n" \
2736         "Create the DIRECTORY(ies) if they do not already exist" \         "Create DIRECTORY\n" \
2737         "\n\nOptions:\n" \       "\nOptions:" \
2738         " -m Set permission mode (as in chmod), not rwxrwxrwx - umask\n" \       "\n -m Mode" \
2739         " -p No error if existing, make parent directories as needed"       "\n -p No error if exists; make parent directories as needed" \
2740     IF_SELINUX( \
2741         "\n -Z Set security context" \
2742     )
2743    
2744  #define mkdir_example_usage \  #define mkdir_example_usage \
2745         "$ mkdir /tmp/foo\n" \         "$ mkdir /tmp/foo\n" \
2746         "$ mkdir /tmp/foo\n" \         "$ mkdir /tmp/foo\n" \
# Line 1966  Line 2749 
2749         "/tmp/foo/bar/baz: No such file or directory\n" \         "/tmp/foo/bar/baz: No such file or directory\n" \
2750         "$ mkdir -p /tmp/foo/bar/baz\n"         "$ mkdir -p /tmp/foo/bar/baz\n"
2751    
 #define mke2fs_trivial_usage \  
        "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \  
        "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \  
        "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \  
        "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \  
        "[-M last-mounted-directory] [-S] [-T filesystem-type] " \  
        "device [blocks-count]"  
 #define mke2fs_full_usage \  
        " -b size Block size in bytes\n" \  
        " -c Check for bad blocks before creating\n" \  
        " -E opts Set extended options\n" \  
        " -f size Fragment size in bytes\n" \  
        " -F Force (ignore sanity checks)\n" \  
        " -g num Number of blocks in a block group\n" \  
        " -i ratio The bytes/inode ratio\n" \  
        " -j Create a journal (ext3)\n" \  
        " -J opts Set journal options (size/device)\n" \  
        " -l file Read bad blocks list from file\n" \  
        " -L lbl Set the volume label\n" \  
        " -m percent Percent of fs blocks to reserve for admin\n" \  
        " -M dir Set last mounted directory\n" \  
        " -n Do not actually create anything\n" \  
        " -N num Number of inodes to create\n" \  
        " -o os Set the 'creator os' field\n" \  
        " -O features Dir_index/filetype/has_journal/journal_dev/sparse_super\n" \  
        " -q Quiet execution\n" \  
        " -r rev Set filesystem revision\n" \  
        " -S Write superblock and group descriptors only\n" \  
        " -T fs-type Set usage type (news/largefile/largefile4)\n" \  
        " -v Verbose execution"  
   
2752  #define mkfifo_trivial_usage \  #define mkfifo_trivial_usage \
2753         "[OPTIONS] name"         "[OPTIONS] name"
2754  #define mkfifo_full_usage \  #define mkfifo_full_usage "\n\n" \
2755         "Create a named pipe (identical to 'mknod name p')" \         "Create named pipe (identical to 'mknod name p')\n" \
2756         "\n\nOptions:\n" \       "\nOptions:" \
2757         " -m Create the pipe using the specified mode (default a=rw)"       "\n -m MODE Mode (default a=rw)" \
2758     IF_SELINUX( \
2759         "\n -Z Set security context" \
2760     )
2761    
2762    #define mkfs_ext2_trivial_usage \
2763           "[-Fn] " \
2764           /* "[-c|-l filename] " */ \
2765           "[-b BLK_SIZE] " \
2766           /* "[-f fragment-size] [-g blocks-per-group] " */ \
2767           "[-i INODE_RATIO] [-I INODE_SIZE] " \
2768           /* "[-j] [-J journal-options] [-N number-of-inodes] " */ \
2769           "[-m RESERVED_PERCENT] " \
2770           /* "[-o creator-os] [-O feature[,...]] [-q] " */ \
2771           /* "[r fs-revision-level] [-E extended-options] [-v] [-F] " */ \
2772           "[-L LABEL] " \
2773           /* "[-M last-mounted-directory] [-S] [-T filesystem-type] " */ \
2774           "BLOCKDEV [KBYTES]"
2775    #define mkfs_ext2_full_usage "\n\n" \
2776           " -b BLK_SIZE Block size, bytes" \
2777    /*   "\n -c Check device for bad blocks" */ \
2778    /*   "\n -E opts Set extended options" */ \
2779    /*   "\n -f size Fragment size in bytes" */ \
2780         "\n -F Force" \
2781    /*   "\n -g N Number of blocks in a block group" */ \
2782         "\n -i RATIO Max number of files is filesystem_size / RATIO" \
2783         "\n -I BYTES Inode size (min 128)" \
2784    /*   "\n -j Create a journal (ext3)" */ \
2785    /*   "\n -J opts Set journal options (size/device)" */ \
2786    /*   "\n -l file Read bad blocks list from file" */ \
2787         "\n -L LBL Volume label" \
2788         "\n -m PERCENT Percent of blocks to reserve for admin" \
2789    /*   "\n -M dir Set last mounted directory" */ \
2790         "\n -n Dry run" \
2791    /*   "\n -N N Number of inodes to create" */ \
2792    /*   "\n -o os Set the 'creator os' field" */ \
2793    /*   "\n -O features Dir_index/filetype/has_journal/journal_dev/sparse_super" */ \
2794    /*   "\n -q Quiet" */ \
2795    /*   "\n -r rev Set filesystem revision" */ \
2796    /*   "\n -S Write superblock and group descriptors only" */ \
2797    /*   "\n -T fs-type Set usage type (news/largefile/largefile4)" */ \
2798    /*   "\n -v Verbose" */ \
2799    
2800  #define mkfs_minix_trivial_usage \  #define mkfs_minix_trivial_usage \
2801         "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"         "[-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]"
2802  #define mkfs_minix_full_usage \  #define mkfs_minix_full_usage "\n\n" \
2803         "Make a MINIX filesystem" \         "Make a MINIX filesystem\n" \
2804         "\n\nOptions:\n" \       "\nOptions:" \
2805         " -c Check the device for bad blocks\n" \       "\n -c Check device for bad blocks" \
2806         " -n [14|30] Specify the maximum length of filenames\n" \       "\n -n [14|30] Maximum length of filenames" \
2807         " -i INODES Specify the number of inodes for the filesystem\n" \       "\n -i INODES Number of inodes for the filesystem" \
2808         " -l FILENAME Read the bad blocks list from FILENAME\n" \       "\n -l FILE Read bad blocks list from FILE" \
2809         " -v Make a Minix version 2 filesystem"       "\n -v Make version 2 filesystem" \
2810    
2811    #define mkfs_reiser_trivial_usage \
2812           "[-f] [-l LABEL] BLOCKDEV [4K-BLOCKS]"
2813    
2814    #define mkfs_reiser_full_usage "\n\n" \
2815           "Make a ReiserFS V3 filesystem\n" \
2816         "\nOptions:" \
2817         "\n -f Force" \
2818         "\n -l LBL Volume label" \
2819    
2820    #define mkfs_vfat_trivial_usage \
2821           "[-v] [-n LABEL] BLOCKDEV [KBYTES]"
2822    /* Accepted but ignored:
2823           "[-c] [-C] [-I] [-l bad-block-file] [-b backup-boot-sector] "
2824           "[-m boot-msg-file] [-i volume-id] "
2825           "[-s sectors-per-cluster] [-S logical-sector-size] [-f number-of-FATs] "
2826           "[-h hidden-sectors] [-F fat-size] [-r root-dir-entries] [-R reserved-sectors] "
2827    */
2828    #define mkfs_vfat_full_usage "\n\n" \
2829           "Make a FAT32 filesystem\n" \
2830         "\nOptions:" \
2831    /*   "\n -c Check device for bad blocks" */ \
2832         "\n -v Verbose" \
2833    /*   "\n -I Allow to use entire disk device (e.g. /dev/hda)" */ \
2834         "\n -n LBL Volume label" \
2835    
2836  #define mknod_trivial_usage \  #define mknod_trivial_usage \
2837         "[OPTIONS] NAME TYPE MAJOR MINOR"         "[OPTIONS] NAME TYPE MAJOR MINOR"
2838  #define mknod_full_usage \  #define mknod_full_usage "\n\n" \
2839         "Create a special file (block, character, or pipe)" \         "Create a special file (block, character, or pipe)\n" \
2840         "\n\nOptions:\n" \       "\nOptions:" \
2841         " -m Create the special file using the specified mode (default a=rw)" \       "\n -m Create the special file using the specified mode (default a=rw)" \
2842         "\n\nTYPEs include:\n" \       "\nTYPEs include:" \
2843         " b: Make a block (buffered) device\n" \       "\n b: Make a block device" \
2844         " c or u: Make a character (un-buffered) device\n" \       "\n c or u: Make a character device" \
2845         " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes"       "\n p: Make a named pipe (MAJOR and MINOR are ignored)" \
2846     IF_SELINUX( \
2847         "\n -Z Set security context" \
2848     )
2849    
2850  #define mknod_example_usage \  #define mknod_example_usage \
2851         "$ mknod /dev/fd0 b 2 0\n" \         "$ mknod /dev/fd0 b 2 0\n" \
2852         "$ mknod -m 644 /tmp/pipe p\n"         "$ mknod -m 644 /tmp/pipe p\n"
2853    
2854  #define mkswap_trivial_usage \  #define mkswap_trivial_usage \
2855         "[-c] [-v0|-v1] device [block-count]"         "[OPTIONS] BLOCKDEV [KBYTES]"
2856  #define mkswap_full_usage \  #define mkswap_full_usage "\n\n" \
2857         "Prepare a disk partition to be used as swap partition" \         "Prepare BLOCKDEV to be used as swap partition\n" \
2858         "\n\nOptions:\n" \       "\nOptions:" \
2859         " -c Check for read-ability\n" \       "\n -L LBL Label" \
        " -v0 Make version 0 swap [max 128 Megs]\n" \  
        " -v1 Make version 1 swap [big!] (default for kernels > 2.1.117)\n" \  
        " block-count Number of block to use (default is entire partition)"  
2860    
2861  #define mktemp_trivial_usage \  #define mktemp_trivial_usage \
2862         "[-dq] TEMPLATE"         "[-dt] [-p DIR] [TEMPLATE]"
2863  #define mktemp_full_usage \  #define mktemp_full_usage "\n\n" \
2864         "Create a temporary file with its name based on TEMPLATE.\n" \         "Create a temporary file with name based on TEMPLATE and print its name.\n" \
2865         "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX)." \         "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n" \
2866         "\n\nOptions:\n" \       "\nOptions:" \
2867         " -d Make a directory instead of a file\n" \       "\n -d Make a directory instead of a file" \
2868         " -q Fail silently if an error occurs"  /*   "\n -q Fail silently if an error occurs" - we ignore it */ \
2869         "\n -t Generate a path rooted in temporary directory" \
2870         "\n -p DIR Use DIR as a temporary directory (implies -t)" \
2871         "\n" \
2872         "\nFor -t or -p, directory is chosen as follows:" \
2873         "\n$TMPDIR if set, else -p DIR, else /tmp" \
2874    
2875  #define mktemp_example_usage \  #define mktemp_example_usage \
2876         "$ mktemp /tmp/temp.XXXXXX\n" \         "$ mktemp /tmp/temp.XXXXXX\n" \
2877         "/tmp/temp.mWiLjM\n" \         "/tmp/temp.mWiLjM\n" \
# Line 2054  Line 2879 
2879         "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n"         "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
2880    
2881  #define modprobe_trivial_usage \  #define modprobe_trivial_usage \
2882         "[-knqrsv] MODULE [symbol=value ...]"   IF_MODPROBE_SMALL("[-qfwrsv] MODULE [symbol=value]...") \
2883  #define modprobe_full_usage \   IF_NOT_MODPROBE_SMALL("[-" \
2884         "Options:\n" \   IF_FEATURE_2_4_MODULES("k")"nqrsv" \
2885         " -k Make module autoclean-able\n" \   IF_FEATURE_MODPROBE_BLACKLIST("b")"] MODULE [symbol=value]...")
2886         " -n Just show what would be done\n" \  #define modprobe_full_usage "\n\n" \
2887         " -q Quiet output\n" \         "Options:" \
2888         " -r Remove module (stacks) or do autoclean\n" \   IF_MODPROBE_SMALL( \
2889         " -s Report via syslog instead of stderr\n" \       "\n -q Quiet" \
2890         " -v Verbose output"       "\n -f Force" \
2891         "\n -w Wait for unload" \
2892         "\n -r Remove module (stacks) or do autoclean" \
2893         "\n -s Report via syslog instead of stderr" \
2894         "\n -v Verbose" \
2895     ) \
2896     IF_NOT_MODPROBE_SMALL( \
2897     IF_FEATURE_2_4_MODULES( \
2898         "\n -k Make module autoclean-able" \
2899     ) \
2900         "\n -n Dry run" \
2901         "\n -q Quiet" \
2902         "\n -r Remove module (stacks) or do autoclean" \
2903         "\n -s Report via syslog instead of stderr" \
2904         "\n -v Verbose" \
2905     IF_FEATURE_MODPROBE_BLACKLIST( \
2906         "\n -b Apply blacklist to module names too" \
2907     ) \
2908     )
2909    
2910  #define modprobe_notes_usage \  #define modprobe_notes_usage \
2911  "modprobe can (un)load a stack of modules, passing each module options (when\n" \  "modprobe can (un)load a stack of modules, passing each module options (when\n" \
2912  "loading). modprobe uses a configuration file to determine what option(s) to\n" \  "loading). modprobe uses a configuration file to determine what option(s) to\n" \
2913  "pass each module it loads.\n" \  "pass each module it loads.\n" \
2914  "\n" \  "\n" \
2915  "The configuration file is searched (in order) amongst:\n" \  "The configuration file is searched (in this order):\n" \
2916  "\n" \  "\n" \
2917  "    /etc/modprobe.conf (2.6 only)\n" \  "    /etc/modprobe.conf (2.6 only)\n" \
2918  "    /etc/modules.conf\n" \  "    /etc/modules.conf\n" \
# Line 2088  Line 2932 
2932  "    the module and the alias.\n" \  "    the module and the alias.\n" \
2933  "    A module can be aliased more than once.\n" \  "    A module can be aliased more than once.\n" \
2934  "\n" \  "\n" \
2935  "  options <mod_name|alias_name> <symbol=value ...>\n" \  "  options <mod_name|alias_name> <symbol=value...>\n" \
2936  "    When loading module mod_name (or the module aliased by alias_name), pass\n" \  "    When loading module mod_name (or the module aliased by alias_name), pass\n" \
2937  "    the \"symbol=value\" pairs as option to that module.\n" \  "    the \"symbol=value\" pairs as option to that module.\n" \
2938  "\n" \  "\n" \
# Line 2124  Line 2968 
2968         "   from the command line\n"         "   from the command line\n"
2969    
2970  #define more_trivial_usage \  #define more_trivial_usage \
2971         "[FILE ...]"         "[FILE]..."
2972  #define more_full_usage \  #define more_full_usage "\n\n" \
2973         "View FILE or standard input one screenful at a time"         "View FILE (or stdin) one screenful at a time"
2974    
2975  #define more_example_usage \  #define more_example_usage \
2976         "$ dmesg | more\n"         "$ dmesg | more\n"
2977    
2978  #define mount_trivial_usage \  #define mount_trivial_usage \
2979         "[flags] DEVICE NODE [-o options,more-options]"         "[OPTIONS] [-o OPTS] DEVICE NODE"
2980  #define mount_full_usage \  #define mount_full_usage "\n\n" \
2981         "Mount a filesystem.  Filesystem autodetection requires /proc be mounted." \         "Mount a filesystem. Filesystem autodetection requires /proc.\n" \
2982         "\n\nOptions:\n"  \       "\nOptions:" \
2983         " -a Mount all filesystems in fstab\n" \       "\n -a Mount all filesystems in fstab" \
2984   USE_FEATURE_MTAB_SUPPORT( \   IF_FEATURE_MOUNT_FAKE( \
2985         " -f \"Fake\" Add entry to mount table but don't mount it\n" \   IF_FEATURE_MTAB_SUPPORT( \
2986         " -n Don't write a mount table entry\n" \       "\n -f Update /etc/mtab, but don't mount" \
  ) \  
        " -o option One of many filesystem options, listed below\n" \  
        " -r Mount the filesystem read-only\n" \  
        " -t fs-type Specify the filesystem type\n" \  
        " -w Mount for reading and writing (default)\n" \  
        "\n" \  
        "Options for use with the \"-o\" flag:\n" \  
  USE_FEATURE_MOUNT_LOOP( \  
        " loop Ignored (loop devices are autodetected)\n" \  
  ) \  
  USE_FEATURE_MOUNT_FLAGS( \  
        " [a]sync Writes are asynchronous / synchronous\n" \  
        " [no]atime Disable / enable updates to inode access times\n" \  
        " [no]diratime Disable / enable atime updates to directories\n" \  
        " [no]dev Allow use of special device files / disallow them\n" \  
        " [no]exec Allow use of executable files / disallow them\n" \  
        " [no]suid Allow set-user-id-root programs / disallow them\n" \  
        " [r]shared Convert [recursively] to a shared subtree\n" \  
        " [r]slave Convert [recursively] to a slave subtree\n" \  
        " [r]private Convert [recursively] to a private subtree\n" \  
        " [un]bindable Make mount point [un]able to be bind mounted\n" \  
        " bind Bind a directory to an additional location\n" \  
        " move Relocate an existing mount point\n" \  
2987   ) \   ) \
2988         " remount Remount a mounted filesystem, changing its flags\n" \   IF_NOT_FEATURE_MTAB_SUPPORT( \
2989         " ro/rw Mount for read-only / read-write\n" \       "\n -f Dry run" \
2990         "\n" \   ) \
2991         "There are EVEN MORE flags that are specific to each filesystem\n" \   ) \
2992         "You'll have to see the written documentation for those filesystems"   IF_FEATURE_MOUNT_HELPERS( \
2993         "\n -i Don't run mount helper" \
2994     ) \
2995     IF_FEATURE_MTAB_SUPPORT( \
2996         "\n -n Don't update /etc/mtab" \
2997     ) \
2998         "\n -r Read-only mount" \
2999         "\n -w Read-write mount (default)" \
3000         "\n -t FSTYPE Filesystem type" \
3001         "\n -O OPT Mount only filesystems with option OPT (-a only)" \
3002         "\n-o OPT:" \
3003     IF_FEATURE_MOUNT_LOOP( \
3004         "\n loop Ignored (loop devices are autodetected)" \
3005     ) \
3006     IF_FEATURE_MOUNT_FLAGS( \
3007         "\n [a]sync Writes are [a]synchronous" \
3008         "\n [no]atime Disable/enable updates to inode access times" \
3009         "\n [no]diratime Disable/enable atime updates to directories" \
3010         "\n [no]relatime Disable/enable atime updates relative to modification time" \
3011         "\n [no]dev (Dis)allow use of special device files" \
3012         "\n [no]exec (Dis)allow use of executable files" \
3013         "\n [no]suid (Dis)allow set-user-id-root programs" \
3014         "\n [r]shared Convert [recursively] to a shared subtree" \
3015         "\n [r]slave Convert [recursively] to a slave subtree" \
3016         "\n [r]private Convert [recursively] to a private subtree" \
3017         "\n [un]bindable Make mount point [un]able to be bind mounted" \
3018         "\n bind Bind a file or directory to another location" \
3019         "\n move Relocate an existing mount point" \
3020     ) \
3021         "\n remount Remount a mounted filesystem, changing flags" \
3022         "\n ro/rw Same as -r/-w" \
3023         "\n" \
3024         "\nThere are filesystem-specific -o flags." \
3025    
3026  #define mount_example_usage \  #define mount_example_usage \
3027         "$ mount\n" \         "$ mount\n" \
3028         "/dev/hda3 on / type minix (rw)\n" \         "/dev/hda3 on / type minix (rw)\n" \
# Line 2180  Line 3035 
3035         "Returns 0 for success, number of failed mounts for -a, or errno for one mount."         "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
3036    
3037  #define mountpoint_trivial_usage \  #define mountpoint_trivial_usage \
3038         "[-q] <[-d] DIR | -x DEVICE>"         "[-q] <[-dn] DIR | -x DEVICE>"
3039  #define mountpoint_full_usage \  #define mountpoint_full_usage "\n\n" \
3040         "mountpoint checks if the directory is a mountpoint" \         "Check if the directory is a mountpoint\n" \
3041         "\n\nOptions:\n"  \       "\nOptions:" \
3042         " -q Be more quiet\n" \       "\n -q Quiet" \
3043         " -d Print major/minor device number of the filesystem\n" \       "\n -d Print major/minor device number of the filesystem" \
3044         " -x Print major/minor device number of the blockdevice"       "\n -n Print device name of the filesystem" \
3045         "\n -x Print major/minor device number of the blockdevice" \
3046    
3047  #define mountpoint_example_usage \  #define mountpoint_example_usage \
3048         "$ mountpoint /proc\n" \         "$ mountpoint /proc\n" \
3049         "/proc is not a mountpoint\n" \         "/proc is not a mountpoint\n" \
# Line 2195  Line 3052 
3052    
3053  #define mt_trivial_usage \  #define mt_trivial_usage \
3054         "[-f device] opcode value"         "[-f device] opcode value"
3055  #define mt_full_usage \  #define mt_full_usage "\n\n" \
3056         "Control magnetic tape drive operation\n" \         "Control magnetic tape drive operation\n" \
3057         "\nAvailable Opcodes:\n\n" \         "\n" \
3058           "Available Opcodes:\n" \
3059           "\n" \
3060         "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \         "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
3061         "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \         "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
3062         "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \         "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
3063         "setpart tell unload unlock weof wset"         "setpart tell unload unlock weof wset" \
3064    
3065  #define mv_trivial_usage \  #define mv_trivial_usage \
3066         "[OPTION]... SOURCE DEST\n" \         "[OPTIONS] SOURCE DEST\n" \
3067         "or: mv [OPTION]... SOURCE... DIRECTORY"         "or: mv [OPTIONS] SOURCE... DIRECTORY"
3068  #define mv_full_usage \  #define mv_full_usage "\n\n" \
3069         "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY" \         "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY\n" \
3070         "\n\nOptions:\n" \       "\nOptions:" \
3071         " -f Don't prompt before overwriting\n" \       "\n -f Don't prompt before overwriting" \
3072         " -i Interactive, prompt before overwrite"       "\n -i Interactive, prompt before overwrite" \
3073    
3074  #define mv_example_usage \  #define mv_example_usage \
3075         "$ mv /tmp/foo /bin/bar\n"         "$ mv /tmp/foo /bin/bar\n"
3076    
3077  #define nameif_trivial_usage \  #define nameif_trivial_usage \
3078         "[-s] [-c FILE] [{IFNAME MACADDR}]"         "[-s] [-c FILE] [{IFNAME MACADDR}]"
3079  #define nameif_full_usage \  #define nameif_full_usage "\n\n" \
3080         "Rename network interface while it in the down state" \         "Rename network interface while it in the down state\n" \
3081         "\n\nOptions:\n" \       "\nOptions:" \
3082         " -c FILE Use configuration file (default is /etc/mactab)\n" \       "\n -c FILE Use configuration file (default: /etc/mactab)" \
3083         " -s Use syslog (LOCAL0 facility)\n" \       "\n -s Use syslog (LOCAL0 facility)" \
3084         " IFNAME MACADDR new_interface_name interface_mac_address"       "\n IFNAME MACADDR new_interface_name interface_mac_address" \
3085    
3086  #define nameif_example_usage \  #define nameif_example_usage \
3087         "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \         "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
3088         " or\n" \         " or\n" \
3089         "$ nameif -c /etc/my_mactab_file\n" \         "$ nameif -c /etc/my_mactab_file\n" \
3090    
3091    #if !ENABLE_DESKTOP
3092    
3093  #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA  #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
3094  #define NC_OPTIONS_STR "\n\nOptions:"  #define NC_OPTIONS_STR "\n\nOptions:"
3095  #else  #else
# Line 2234  Line 3097 
3097  #endif  #endif
3098    
3099  #define nc_trivial_usage \  #define nc_trivial_usage \
3100   USE_NC_EXTRA("[-iN] [-wN] ")USE_NC_SERVER("[-l] [-p PORT] ") \   IF_NC_EXTRA("[-iN] [-wN] ")IF_NC_SERVER("[-l] [-p PORT] ") \
3101         "["USE_NC_EXTRA("-f FILENAME|")"IPADDR PORTNUM]"USE_NC_EXTRA(" [-e COMMAND]")         "["IF_NC_EXTRA("-f FILENAME|")"IPADDR PORT]"IF_NC_EXTRA(" [-e PROG]")
3102  #define nc_full_usage \  #define nc_full_usage "\n\n" \
3103         "Open a pipe to IP:port" USE_NC_EXTRA(" or file") \         "Open a pipe to IP:port" IF_NC_EXTRA(" or file") \
3104   NC_OPTIONS_STR \   NC_OPTIONS_STR \
3105   USE_NC_EXTRA( \   IF_NC_EXTRA( \
3106         "\n -e Exec rest of command line after connect" \       "\n -e PROG Run PROG after connect" \
3107         "\n -i SECS Delay interval for lines sent" \       "\n -i SEC Delay interval for lines sent" \
3108         "\n -w SECS Timeout for connect" \       "\n -w SEC Timeout for connect" \
3109         "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \       "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \
3110   ) \   ) \
3111   USE_NC_SERVER( \   IF_NC_SERVER( \
3112         "\n -l Listen mode, for inbound connects" \       "\n -l Listen mode, for inbound connects" \
3113   USE_NC_EXTRA( \   IF_NC_EXTRA( \
3114         "\n (use -l twice with -e for persistent server)") \       "\n (use -l twice with -e for persistent server)") \
3115         "\n -p PORT Local port number" \       "\n -p PORT Local port" \
3116   )   )
3117    
3118  #define nc_notes_usage "" \  #define nc_notes_usage "" \
3119   USE_NC_EXTRA( \   IF_NC_EXTRA( \
3120         "To use netcat as a terminal emulator on a serial port:\n\n" \         "To use netcat as a terminal emulator on a serial port:\n\n" \
3121         "$ stty 115200 -F /dev/ttyS0\n" \         "$ stty 115200 -F /dev/ttyS0\n" \
3122         "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \         "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \
# Line 2269  Line 3132 
3132         "quit\n" \         "quit\n" \
3133         "221 foobar closing connection\n"         "221 foobar closing connection\n"
3134    
3135    #else /* DESKTOP nc - much more compatible with nc 1.10 */
3136    
3137    #define nc_trivial_usage \
3138           "[OPTIONS] HOST PORT  - connect" \
3139     IF_NC_SERVER("\n" \
3140           "nc [OPTIONS] -l -p PORT [HOST] [PORT]  - listen")
3141    #define nc_full_usage "\n\n" \
3142           "Options:" \
3143         "\n -e PROG Run PROG after connect (must be last)" \
3144     IF_NC_SERVER( \
3145         "\n -l Listen mode, for inbound connects" \
3146     ) \
3147         "\n -n Don't do DNS resolution" \
3148         "\n -s ADDR Local address" \
3149         "\n -p PORT Local port" \
3150         "\n -u UDP mode" \
3151         "\n -v Verbose" \
3152         "\n -w SEC Timeout for connects and final net reads" \
3153     IF_NC_EXTRA( \
3154         "\n -i SEC Delay interval for lines sent" /* ", ports scanned" */ \
3155         "\n -o FILE Hex dump traffic" \
3156         "\n -z Zero-I/O mode (scanning)" \
3157     ) \
3158    /*   "\n -r Randomize local and remote ports" */
3159    /*   "\n -g gateway Source-routing hop point[s], up to 8" */
3160    /*   "\n -G num Source-routing pointer: 4, 8, 12, ..." */
3161    /*   "\nport numbers can be individual or ranges: lo-hi [inclusive]" */
3162    
3163    /* -e PROG can take ARGS too: "nc ... -e ls -l", but we don't document it
3164     * in help text: nc 1.10 does not allow that. We don't want to entice
3165     * users to use this incompatibility */
3166    
3167    #endif
3168    
3169  #define netstat_trivial_usage \  #define netstat_trivial_usage \
3170         "[-laenrtuwx]"         "[-laentuwxr"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]"
3171  #define netstat_full_usage \  #define netstat_full_usage "\n\n" \
3172         "Display networking information" \         "Display networking information\n" \
3173         "\n\nOptions:\n" \       "\nOptions:" \
3174         " -l Display listening server sockets\n" \       "\n -l Display listening server sockets" \
3175         " -a Display all sockets (default: connected)\n" \       "\n -a Display all sockets (default: connected)" \
3176         " -e Display other/more information\n" \       "\n -e Display other/more information" \
3177         " -n Don't resolve names\n" \       "\n -n Don't resolve names" \
3178         " -r Display routing table\n" \       "\n -t Tcp sockets" \
3179         " -t Tcp sockets\n" \       "\n -u Udp sockets" \
3180         " -u Udp sockets\n" \       "\n -w Raw sockets" \
3181         " -w Raw sockets\n" \       "\n -x Unix sockets" \
3182         " -x Unix sockets"       "\n -r Display routing table" \
3183     IF_FEATURE_NETSTAT_WIDE( \
3184         "\n -W Display with no column truncation" \
3185     ) \
3186     IF_FEATURE_NETSTAT_PRG( \
3187         "\n -p Display PID/Program name for sockets" \
3188     )
3189    
3190  #define nice_trivial_usage \  #define nice_trivial_usage \
3191         "[-n ADJUST] [COMMAND [ARG] ...]"         "[-n ADJUST] [PROG ARGS]"
3192  #define nice_full_usage \  #define nice_full_usage "\n\n" \
3193         "Run a program with modified scheduling priority" \         "Run PROG with modified scheduling priority\n" \
3194         "\n\nOptions:\n" \       "\nOptions:" \
3195         " -n ADJUST Adjust the scheduling priority by ADJUST"       "\n -n ADJUST Adjust priority by ADJUST" \
3196    
3197  #define nmeter_trivial_usage \  #define nmeter_trivial_usage \
3198         "format_string"         "format_string"
3199  #define nmeter_full_usage \  #define nmeter_full_usage "\n\n" \
3200         "Monitor system in real time\n\n" \         "Monitor system in real time\n\n" \
3201         "Format specifiers:\n" \         "Format specifiers:\n" \
3202         "%Nc or %[cN] Monitor CPU. N - bar size, default 10\n" \         " %Nc or %[cN] Monitor CPU. N - bar size, default 10\n" \
3203         " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \         " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
3204         "%[niface] Monitor network interface 'iface'\n" \         " %[niface] Monitor network interface 'iface'\n" \
3205         "%m Monitor allocated memory\n" \         " %m Monitor allocated memory\n" \
3206         "%[mf] Monitor free memory\n" \         " %[mf] Monitor free memory\n" \
3207         "%[mt] Monitor total memory\n" \         " %[mt] Monitor total memory\n" \
3208         "%s Monitor allocated swap\n" \         " %s Monitor allocated swap\n" \
3209         "%f Monitor number of used file descriptors\n" \         " %f Monitor number of used file descriptors\n" \
3210         "%Ni Monitor total/specific IRQ rate\n" \         " %Ni Monitor total/specific IRQ rate\n" \
3211         "%x Monitor context switch rate\n" \         " %x Monitor context switch rate\n" \
3212         "%p Monitor forks\n" \         " %p Monitor forks\n" \
3213         "%[pn] Monitor # of processes\n" \         " %[pn] Monitor # of processes\n" \
3214         "%b Monitor block io\n" \         " %b Monitor block io\n" \
3215         "%Nt Show time (with N decimal points)\n" \         " %Nt Show time (with N decimal points)\n" \
3216         "%Nd Milliseconds between updates (default=1000)\n" \         " %Nd Milliseconds between updates (default:1000)\n" \
3217         "%r Print <cr> instead of <lf> at EOL"         " %r Print <cr> instead of <lf> at EOL" \
3218    
3219  #define nmeter_example_usage \  #define nmeter_example_usage \
3220         "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"         "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
3221    
3222  #define nohup_trivial_usage \  #define nohup_trivial_usage \
3223         "COMMAND [ARGS]"         "PROG ARGS"
3224  #define nohup_full_usage \  #define nohup_full_usage "\n\n" \
3225         "Run a command immune to hangups, with output to a non-tty"         "Run PROG immune to hangups, with output to a non-tty"
3226  #define nohup_example_usage \  #define nohup_example_usage \
3227         "$ nohup make &"         "$ nohup make &"
3228    
3229  #define nslookup_trivial_usage \  #define nslookup_trivial_usage \
3230         "[HOST] [SERVER]"         "[HOST] [SERVER]"
3231  #define nslookup_full_usage \  #define nslookup_full_usage "\n\n" \
3232         "Query the nameserver for the IP address of the given HOST\n" \         "Query the nameserver for the IP address of the given HOST\n" \
3233         "optionally using a specified DNS server"         "optionally using a specified DNS server"
3234  #define nslookup_example_usage \  #define nslookup_example_usage \
# Line 2335  Line 3239 
3239         "Name:       debian\n" \         "Name:       debian\n" \
3240         "Address:    127.0.0.1\n"         "Address:    127.0.0.1\n"
3241    
3242    #define ntpd_trivial_usage \
3243     "[-dnqwl] [-S PROG] [-p PEER]..."
3244    #define ntpd_full_usage "\n\n" \
3245           "NTP client/server\n" \
3246         "\nOptions:" \
3247         "\n -d Verbose" \
3248         "\n -n Do not daemonize" \
3249         "\n -q Quit after clock is set" \
3250    /* -N exists for mostly compat reasons, thus not essential to inform */ \
3251    /* the user that it exists: user may use nice as well */ \
3252    /*   "\n -N Run at high priority" */ \
3253         "\n -w Do not set time (only query peers), implies -n" \
3254         "\n -l Run as server on port 123" \
3255         "\n -S PROG Run PROG after stepping time, stratum change, and every 11 mins" \
3256         "\n -p PEER Obtain time from PEER (may be repeated)" \
3257    
3258  #define od_trivial_usage \  #define od_trivial_usage \
3259         "[-aBbcDdeFfHhIiLlOovXx] [FILE]"         "[-aBbcDdeFfHhIiLlOovXx] " IF_DESKTOP("[-t TYPE] ") "[FILE]"
3260  #define od_full_usage \  #define od_full_usage "\n\n" \
3261         "Write an unambiguous representation, octal bytes by default, of FILE\n" \         "Write an unambiguous representation, octal bytes by default, of FILE\n" \
3262         "to standard output.  With no FILE, or when FILE is -, read standard input."         "(or stdin) to stdout"
3263    
3264  #define openvt_trivial_usage \  #define openvt_trivial_usage \
3265         "<vtnum> <COMMAND> [ARGS...]"         "[-c N] [-sw] [PROG ARGS]"
3266  #define openvt_full_usage \  #define openvt_full_usage "\n\n" \
3267         "Start a command on a new virtual terminal"         "Start PROG on a new virtual terminal\n" \
3268         "\nOptions:" \
3269         "\n -c N Use specified VT" \
3270         "\n -s Switch to the VT" \
3271    /*   "\n -l Run PROG as login shell (by prepending '-')" */ \
3272         "\n -w Wait for PROG to exit" \
3273    
3274  #define openvt_example_usage \  #define openvt_example_usage \
3275         "openvt 2 /bin/ash\n"         "openvt 2 /bin/ash\n"
3276    
3277    /*
3278    #define parse_trivial_usage \
3279           "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..."
3280    #define parse_full_usage ""
3281    */
3282    
3283  #define passwd_trivial_usage \  #define passwd_trivial_usage \
3284         "[OPTION] [name]"         "[OPTIONS] [USER]"
3285  #define passwd_full_usage \  #define passwd_full_usage "\n\n" \
3286         "Change a user password. If no name is specified,\n" \         "Change USER's password. If no USER is specified,\n" \
3287         "changes the password for the current user." \         "changes the password for the current user.\n" \
3288         "\n\nOptions:\n" \       "\nOptions:" \
3289         " -a Define which algorithm shall be used for the password\n" \       "\n -a Algorithm to use for password (des, md5)" /* ", sha1)" */ \
3290         " (choices: des, md5)\n" /* ", sha1)" */ \       "\n -d Delete password for the account" \
3291         " -d Delete the password for the specified user account\n" \       "\n -l Lock (disable) account" \
3292         " -l Locks (disables) the specified user account\n" \       "\n -u Unlock (re-enable) account" \
3293         " -u Unlocks (re-enables) the specified user account"  
3294    #define chpasswd_trivial_usage \
3295     IF_LONG_OPTS("[--md5|--encrypted]") IF_NOT_LONG_OPTS("[-m|-e]")
3296    #define chpasswd_full_usage "\n\n" \
3297           "Read user:password from stdin and update /etc/passwd\n" \
3298         "\nOptions:" \
3299     IF_LONG_OPTS( \
3300         "\n -e,--encrypted Supplied passwords are in encrypted form" \
3301         "\n -m,--md5 Use MD5 encryption instead of DES" \
3302     ) \
3303     IF_NOT_LONG_OPTS( \
3304         "\n -e Supplied passwords are in encrypted form" \
3305         "\n -m Use MD5 encryption instead of DES" \
3306     )
3307    
3308  #define patch_trivial_usage \  #define patch_trivial_usage \
3309         "[-p<num>] [-i <diff>]"         "[OPTIONS] [ORIGFILE [PATCHFILE]]"
3310  #define patch_full_usage \  #define patch_full_usage "\n\n" \
3311         " -p NUM Strip NUM leading components from file names\n" \   IF_LONG_OPTS( \
3312         " -i DIFF Read DIFF instead of stdin"         " -p,--strip N Strip N leading components from file names" \
3313         "\n -i,--input DIFF Read DIFF instead of stdin" \
3314         "\n -R,--reverse Reverse patch" \
3315         "\n -N,--forward Ignore already applied patches" \
3316         "\n --dry-run Don't actually change files" \
3317     ) \
3318     IF_NOT_LONG_OPTS( \
3319           " -p N Strip N leading components from file names" \
3320         "\n -i DIFF Read DIFF instead of stdin" \
3321         "\n -R Reverse patch" \
3322         "\n -N Ignore already applied patches" \
3323     )
3324    
3325  #define patch_example_usage \  #define patch_example_usage \
3326         "$ patch -p1 < example.diff\n" \         "$ patch -p1 < example.diff\n" \
3327         "$ patch -p0 -i example.diff"         "$ patch -p0 -i example.diff"
3328    
3329    #define pgrep_trivial_usage \
3330           "[-flnovx] [-s SID|-P PPID|PATTERN]"
3331    #define pgrep_full_usage "\n\n" \
3332           "Display process(es) selected by regex PATTERN\n" \
3333         "\nOptions:" \
3334         "\n -l Show command name too" \
3335         "\n -f Match against entire command line" \
3336         "\n -n Show the newest process only" \
3337         "\n -o Show the oldest process only" \
3338         "\n -v Negate the match" \
3339         "\n -x Match whole name (not substring)" \
3340         "\n -s Match session ID (0 for current)" \
3341         "\n -P Match parent process ID" \
3342    
3343  #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)  #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
3344  #define USAGE_PIDOF "Options:"  #define pidof_trivial_usage \
3345           "[OPTIONS] [NAME]..."
3346    #define USAGE_PIDOF "\n\nOptions:"
3347  #else  #else
 #define USAGE_PIDOF "\nThis version of pidof accepts no options."  
 #endif  
   
3348  #define pidof_trivial_usage \  #define pidof_trivial_usage \
3349         "process-name [OPTION] [process-name ...]"         "[NAME]..."
3350    #define USAGE_PIDOF /* none */
3351  #define pidof_full_usage \  #endif
3352         "List the PIDs of all processes with names that match the\n" \  #define pidof_full_usage "\n\n" \
3353         "names on the command line\n" \         "List PIDs of all processes with names that match NAMEs" \
3354   USAGE_PIDOF \   USAGE_PIDOF \
3355   USE_FEATURE_PIDOF_SINGLE( \   IF_FEATURE_PIDOF_SINGLE( \
3356         "\n -s Display only a single PID") \       "\n -s Show only one PID") \
3357   USE_FEATURE_PIDOF_OMIT( \   IF_FEATURE_PIDOF_OMIT( \
3358         "\n -o Omit given pid") \       "\n -o PID Omit given pid" \
3359   USE_FEATURE_PIDOF_OMIT( \       "\n Use %PPID to omit pid of pidof's parent") \
3360         "\n Use %PPID to omit the parent pid of pidof itself")  
3361  #define pidof_example_usage \  #define pidof_example_usage \
3362         "$ pidof init\n" \         "$ pidof init\n" \
3363         "1\n" \         "1\n" \
3364   USE_FEATURE_PIDOF_OMIT( \   IF_FEATURE_PIDOF_OMIT( \
3365         "$ pidof /bin/sh\n20351 5973 5950\n") \         "$ pidof /bin/sh\n20351 5973 5950\n") \
3366   USE_FEATURE_PIDOF_OMIT( \   IF_FEATURE_PIDOF_OMIT( \
3367         "$ pidof /bin/sh -o %PPID\n20351 5950")         "$ pidof /bin/sh -o %PPID\n20351 5950")
3368    
3369  #ifndef CONFIG_FEATURE_FANCY_PING  #if !ENABLE_FEATURE_FANCY_PING
3370  #define ping_trivial_usage \  #define ping_trivial_usage \
3371         "host"         "host"
3372  #define ping_full_usage \  #define ping_full_usage "\n\n" \
3373           "Send ICMP ECHO_REQUEST packets to network hosts"
3374    #define ping6_trivial_usage \
3375           "host"
3376    #define ping6_full_usage "\n\n" \
3377         "Send ICMP ECHO_REQUEST packets to network hosts"         "Send ICMP ECHO_REQUEST packets to network hosts"
3378  #else  #else
3379  #define ping_trivial_usage \  #define ping_trivial_usage \
3380         "[OPTION]... host"         "[OPTIONS] HOST"
3381  #define ping_full_usage \  #define ping_full_usage "\n\n" \
3382         "Send ICMP ECHO_REQUEST packets to network hosts" \         "Send ICMP ECHO_REQUEST packets to network hosts\n" \
3383         "\n\nOptions:\n" \       "\nOptions:" \
3384         " -c CNT Send only CNT pings\n" \       "\n -4, -6 Force IP or IPv6 name resolution" \
3385         " -s SIZE Send SIZE data bytes in packets (default=56)\n" \       "\n -c CNT Send only CNT pings" \
3386         " -I IP Use IP as source address\n" \       "\n -s SIZE Send SIZE data bytes in packets (default:56)" \
3387         " -q Quiet mode, only displays output at start\n" \       "\n -I IFACE/IP Use interface or IP address as source" \
3388         " and when finished"       "\n -W SEC Seconds to wait for the first response (default:10)" \
3389         "\n (after all -c CNT packets are sent)" \
3390         "\n -w SEC Seconds until ping exits (default:infinite)" \
3391         "\n (can exit earlier with -c CNT)" \
3392         "\n -q Quiet, only displays output at start" \
3393         "\n and when finished" \
3394    
3395    #define ping6_trivial_usage \
3396           "[OPTIONS] HOST"
3397    #define ping6_full_usage "\n\n" \
3398           "Send ICMP ECHO_REQUEST packets to network hosts\n" \
3399         "\nOptions:" \
3400         "\n -c CNT Send only CNT pings" \
3401         "\n -s SIZE Send SIZE data bytes in packets (default:56)" \
3402         "\n -I IFACE/IP Use interface or IP address as source" \
3403         "\n -q Quiet, only displays output at start" \
3404         "\n and when finished" \
3405    
3406  #endif  #endif
3407  #define ping_example_usage \  #define ping_example_usage \
3408         "$ ping localhost\n" \         "$ ping localhost\n" \
# Line 2421  Line 3412 
3412         "--- debian ping statistics ---\n" \         "--- debian ping statistics ---\n" \
3413         "1 packets transmitted, 1 packets received, 0% packet loss\n" \         "1 packets transmitted, 1 packets received, 0% packet loss\n" \
3414         "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"         "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
   
 #ifndef CONFIG_FEATURE_FANCY_PING6  
 #define ping6_trivial_usage \  
        "host"  
 #define ping6_full_usage \  
        "Send ICMP ECHO_REQUEST packets to network hosts"  
 #else  
 #define ping6_trivial_usage \  
        "[OPTION]... host"  
 #define ping6_full_usage \  
        "Send ICMP ECHO_REQUEST packets to network hosts" \  
        "\n\nOptions:\n" \  
        " -c CNT Send only CNT pings\n" \  
        " -s SIZE Send SIZE data bytes in packets (default=56)\n" \  
        " -q Quiet mode, only displays output at start\n" \  
        " and when finished"  
 #endif  
3415  #define ping6_example_usage \  #define ping6_example_usage \
3416         "$ ping6 ip6-localhost\n" \         "$ ping6 ip6-localhost\n" \
3417         "PING ip6-localhost (::1): 56 data bytes\n" \         "PING ip6-localhost (::1): 56 data bytes\n" \
# Line 2447  Line 3421 
3421         "1 packets transmitted, 1 packets received, 0% packet loss\n" \         "1 packets transmitted, 1 packets received, 0% packet loss\n" \
3422         "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"         "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
3423    
3424    #define pipe_progress_trivial_usage NOUSAGE_STR
3425    #define pipe_progress_full_usage ""
3426    
3427  #define pivot_root_trivial_usage \  #define pivot_root_trivial_usage \
3428         "NEW_ROOT PUT_OLD"         "NEW_ROOT PUT_OLD"
3429  #define pivot_root_full_usage \  #define pivot_root_full_usage "\n\n" \
3430         "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \         "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
3431         "the new root file system"         "the new root file system"
3432    
3433    #define pkill_trivial_usage \
3434           "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]"
3435    #define pkill_full_usage "\n\n" \
3436           "Send a signal to process(es) selected by regex PATTERN\n" \
3437         "\nOptions:" \
3438         "\n -l List all signals" \
3439         "\n -f Match against entire command line" \
3440         "\n -n Signal the newest process only" \
3441         "\n -o Signal the oldest process only" \
3442         "\n -v Negate the match" \
3443         "\n -x Match whole name (not substring)" \
3444         "\n -s Match session ID (0 for current)" \
3445         "\n -P Match parent process ID" \
3446    
3447    #define popmaildir_trivial_usage \
3448           "[OPTIONS] MAILDIR [CONN_HELPER ARGS]"
3449    #define popmaildir_full_usage "\n\n" \
3450           "Fetch content of remote mailbox to local maildir\n" \
3451         "\nOptions:" \
3452    /*   "\n -b Binary mode. Ignored" */ \
3453    /*   "\n -d Debug. Ignored" */ \
3454    /*   "\n -m Show used memory. Ignored" */ \
3455    /*   "\n -V Show version. Ignored" */ \
3456    /*   "\n -c Use tcpclient. Ignored" */ \
3457    /*   "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" */ \
3458         "\n -s Skip authorization" \
3459         "\n -T Get messages with TOP instead with RETR" \
3460         "\n -k Keep retrieved messages on the server" \
3461         "\n -t SEC Network timeout" \
3462     IF_FEATURE_POPMAILDIR_DELIVERY( \
3463         "\n -F \"PROG ARGS\" Filter program. May be multiple" \
3464         "\n -M \"PROG ARGS\" Delivery program" \
3465     ) \
3466    /*   "\n -R BYTES Remove old messages on the server >= BYTES. Ignored" */
3467    /*   "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" */
3468    /*   "\n -L BYTES Don't retrieve new messages >= BYTES. Ignored" */
3469    /*   "\n -H LINES Type first LINES of a message. Ignored" */
3470    #define popmaildir_example_usage \
3471           "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" \
3472           "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
3473    
3474  #define poweroff_trivial_usage \  #define poweroff_trivial_usage \
3475         "[-d<delay>] [-n<nosync>] [-f<force>]"         "[-d DELAY] [-n] [-f]"
3476  #define poweroff_full_usage \  #define poweroff_full_usage "\n\n" \
3477         "Halt and shut off power" \         "Halt and shut off power\n" \
3478         "\n\nOptions:\n" \       "\nOptions:" \
3479         " -d Delay interval for halting\n" \       "\n -d Delay interval for halting" \
3480         " -n No call to sync()\n" \       "\n -n No call to sync()" \
3481         " -f Force power off (don't go through init)"       "\n -f Force power off (don't go through init)" \
3482    
3483  #define printenv_trivial_usage \  #define printenv_trivial_usage \
3484         "[VARIABLES...]"         "[VARIABLE]..."
3485  #define printenv_full_usage \  #define printenv_full_usage "\n\n" \
3486         "Print all or part of environment.\n" \         "Print environment VARIABLEs.\n" \
3487         "If no environment VARIABLE specified, print them all."         "If no VARIABLE specified, print all."
3488    
3489  #define printf_trivial_usage \  #define printf_trivial_usage \
3490         "FORMAT [ARGUMENT...]"         "FORMAT [ARGUMENT]..."
3491  #define printf_full_usage \  #define printf_full_usage "\n\n" \
3492         "Format and print ARGUMENT(s) according to FORMAT,\n" \         "Format and print ARGUMENT(s) according to FORMAT,\n" \
3493         "where FORMAT controls the output exactly as in C printf"         "where FORMAT controls the output exactly as in C printf"
3494  #define printf_example_usage \  #define printf_example_usage \
# Line 2482  Line 3500 
3500    
3501  #define ps_trivial_usage \  #define ps_trivial_usage \
3502         ""         ""
3503  #define ps_full_usage \  #define ps_full_usage "\n\n" \
3504         "Report process status" \         "Report process status\n" \
3505         "\n\nOptions:" \       "\nOptions:" \
3506         "\n -o col1,col2=header Select columns for display" \       "\n -o col1,col2=header Select columns for display" \
3507     IF_FEATURE_SHOW_THREADS( \
3508         "\n -T Show threads" \
3509     )
3510    
3511  #else /* !ENABLE_DESKTOP */  #else /* !ENABLE_DESKTOP */
3512    
3513  #if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE  #if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE
3514  #define USAGE_PS "\nThis version of ps accepts no options"  #define USAGE_PS "\nThis version of ps accepts no options"
3515  #else  #else
3516  #define USAGE_PS "\nOptions:"  #define USAGE_PS "\nOptions:"
# Line 2497  Line 3518 
3518    
3519  #define ps_trivial_usage \  #define ps_trivial_usage \
3520         ""         ""
3521  #define ps_full_usage \  #define ps_full_usage "\n\n" \
3522         "Report process status\n" \         "Report process status\n" \
3523   USAGE_PS \   USAGE_PS \
3524   USE_SELINUX( \   IF_SELINUX( \
3525         "\n -c Show SE Linux context") \       "\n -Z Show SE Linux context" \
3526   USE_FEATURE_PS_WIDE( \   ) \
3527         "\n w Wide output")   IF_FEATURE_PS_WIDE( \
3528         "\n w Wide output" \
3529     )
3530    
3531  #endif /* ENABLE_DESKTOP */  #endif /* ENABLE_DESKTOP */
3532    
# Line 2518  Line 3541 
3541         "  742 andersen andersen S [bash]\n" \         "  742 andersen andersen S [bash]\n" \
3542         "  743 andersen andersen S -bash\n" \         "  743 andersen andersen S -bash\n" \
3543         "  745 root     root     S [getty]\n" \         "  745 root     root     S [getty]\n" \
3544         " 2990 andersen andersen R ps\n"         " 2990 andersen andersen R ps\n" \
3545    
3546    #define pscan_trivial_usage \
3547           "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
3548    #define pscan_full_usage "\n\n" \
3549           "Scan a host, print all open ports\n" \
3550         "\nOptions:" \
3551         "\n -c Show closed ports too" \
3552         "\n -b Show blocked ports too" \
3553         "\n -p Scan from this port (default 1)" \
3554         "\n -P Scan up to this port (default 1024)" \
3555         "\n -t Timeout (default 5000 ms)" \
3556         "\n -T Minimum rtt (default 5 ms, increase for congested hosts)" \
3557    
3558  #define pwd_trivial_usage \  #define pwd_trivial_usage \
3559         ""         ""
3560  #define pwd_full_usage \  #define pwd_full_usage "\n\n" \
3561         "Print the full filename of the current working directory"         "Print the full filename of the current working directory"
3562  #define pwd_example_usage \  #define pwd_example_usage \
3563         "$ pwd\n" \         "$ pwd\n" \
# Line 2531  Line 3565 
3565    
3566  #define raidautorun_trivial_usage \  #define raidautorun_trivial_usage \
3567         "DEVICE"         "DEVICE"
3568  #define raidautorun_full_usage \  #define raidautorun_full_usage "\n\n" \
3569         "Tell the kernel to automatically search and start RAID arrays"         "Tell the kernel to automatically search and start RAID arrays"
3570  #define raidautorun_example_usage \  #define raidautorun_example_usage \
3571         "$ raidautorun /dev/md0"         "$ raidautorun /dev/md0"
3572    
3573  #define rdate_trivial_usage \  #define rdate_trivial_usage \
3574         "[-sp] HOST"         "[-sp] HOST"
3575  #define rdate_full_usage \  #define rdate_full_usage "\n\n" \
3576         "Get and possibly set the system date and time from a remote HOST" \         "Get and possibly set the system date and time from a remote HOST\n" \
3577         "\n\nOptions:\n" \       "\nOptions:" \
3578         " -s Set the system date and time (default)\n" \       "\n -s Set the system date and time (default)" \
3579         " -p Print the date and time"       "\n -p Print the date and time" \
3580    
3581    #define rdev_trivial_usage \
3582           ""
3583    #define rdev_full_usage "\n\n" \
3584           "Print the device node associated with the filesystem mounted at '/'"
3585    #define rdev_example_usage \
3586           "$ rdev\n" \
3587           "/dev/mtdblock9 /\n"
3588    
3589  #define readahead_trivial_usage \  #define readahead_trivial_usage \
3590         "[FILE]..."         "[FILE]..."
3591  #define readahead_full_usage \  #define readahead_full_usage "\n\n" \
3592         "Preload FILE(s) in RAM cache so that subsequent reads for those" \         "Preload FILEs to RAM"
        "files do not block on disk I/O"  
3593    
3594  #define readlink_trivial_usage \  #define readlink_trivial_usage \
3595   USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE"   IF_FEATURE_READLINK_FOLLOW("[-fnv] ") "FILE"
3596  #define readlink_full_usage \  #define readlink_full_usage "\n\n" \
3597         "Display the value of a symbolic link" \         "Display the value of a symlink" \
3598   USE_FEATURE_READLINK_FOLLOW( \   IF_FEATURE_READLINK_FOLLOW( "\n" \
3599         "\n\nOptions:\n" \       "\nOptions:" \
3600         " -f Canonicalize by following all symlinks")       "\n -f Canonicalize by following all symlinks" \
3601         "\n -n Don't add newline" \
3602         "\n -v Verbose" \
3603     ) \
3604    
3605  #define readprofile_trivial_usage \  #define readprofile_trivial_usage \
3606         "[OPTIONS]..."         "[OPTIONS]"
3607  #define readprofile_full_usage \  #define readprofile_full_usage "\n\n" \
3608         "Options:\n" \         "Options:" \
3609         " -m <mapfile> (Default: /boot/System.map)\n" \       "\n -m mapfile (Default: /boot/System.map)" \
3610         " -p <profile> (Default: /proc/profile)\n" \       "\n -p profile (Default: /proc/profile)" \
3611         " -M <mult> Set the profiling multiplier to <mult>\n" \       "\n -M mult Set the profiling multiplier to mult" \
3612         " -i Print only info about the sampling step\n" \       "\n -i Print only info about the sampling step" \
3613         " -v Print verbose data\n" \       "\n -v Verbose" \
3614         " -a Print all symbols, even if count is 0\n" \       "\n -a Print all symbols, even if count is 0" \
3615         " -b Print individual histogram-bin counts\n" \       "\n -b Print individual histogram-bin counts" \
3616         " -s Print individual counters within functions\n" \       "\n -s Print individual counters within functions" \
3617         " -r Reset all the counters (root only)\n" \       "\n -r Reset all the counters (root only)" \
3618         " -n Disable byte order auto-detection"       "\n -n Disable byte order auto-detection" \
3619    
3620  #define realpath_trivial_usage \  #define realpath_trivial_usage \
3621         "pathname  ..."         "FILE..."
3622  #define realpath_full_usage \  #define realpath_full_usage "\n\n" \
3623         "Return the absolute pathnames of given argument"         "Return the absolute pathnames of given FILE"
3624    
3625  #define reboot_trivial_usage \  #define reboot_trivial_usage \
3626         "[-d<delay>] [-n<nosync>] [-f<force>]"         "[-d DELAY] [-n] [-f]"
3627  #define reboot_full_usage \  #define reboot_full_usage "\n\n" \
3628         "Reboot the system" \         "Reboot the system\n" \
3629         "\n\nOptions:\n" \       "\nOptions:" \
3630         " -d Delay interval for rebooting\n" \       "\n -d Delay interval for rebooting" \
3631         " -n No call to sync()\n" \       "\n -n No call to sync()" \
3632         " -f Force reboot (don't go through init)"       "\n -f Force reboot (don't go through init)" \
3633    
3634    #define reformime_trivial_usage \
3635           "[OPTIONS] [FILE]..."
3636    #define reformime_full_usage "\n\n" \
3637           "Parse MIME-encoded message\n" \
3638         "\nOptions:" \
3639         "\n -x PREFIX Extract content of MIME sections to files" \
3640         "\n -X PROG ARGS Filter content of MIME sections through PROG" \
3641         "\n Must be the last option" \
3642         "\n" \
3643         "\nOther options are silently ignored" \
3644    
3645  #define renice_trivial_usage \  #define renice_trivial_usage \
3646         "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]"         "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]"
3647  #define renice_full_usage \  #define renice_full_usage "\n\n" \
3648         "Change priority of running processes" \         "Change priority of running processes\n" \
3649         "\n\nOptions:\n" \       "\nOptions:" \
3650         " -n Adjusts current nice value (smaller is faster)\n" \       "\n -n Adjust current nice value (smaller is faster)" \
3651         " -p Process id(s) (default)\n" \       "\n -p Process id(s) (default)" \
3652         " -g Process group id(s)\n" \       "\n -g Process group id(s)" \
3653         " -u Process user name(s) and/or id(s)"       "\n -u Process user name(s) and/or id(s)" \
3654    
3655    #define scriptreplay_trivial_usage \
3656           "timingfile [typescript [divisor]]"
3657    #define scriptreplay_full_usage "\n\n" \
3658           "Play back typescripts, using timing information"
3659    
3660  #define reset_trivial_usage \  #define reset_trivial_usage \
3661         ""         ""
3662  #define reset_full_usage \  #define reset_full_usage "\n\n" \
3663         "Reset the screen"         "Reset the screen"
3664    
3665  #define resize_trivial_usage \  #define resize_trivial_usage \
3666         ""         ""
3667  #define resize_full_usage \  #define resize_full_usage "\n\n" \
3668         "Resize the screen"         "Resize the screen"
3669    
3670    #define restorecon_trivial_usage \
3671           "[-iFnrRv] [-e excludedir]... [-o filename] [-f filename | pathname]"
3672    #define restorecon_full_usage "\n\n" \
3673           "Reset security contexts of files in pathname\n" \
3674         "\n -i Ignore files that don't exist" \
3675         "\n -f file File with list of files to process. Use - for stdin" \
3676         "\n -e directory Directory to exclude" \
3677         "\n -R,-r Recurse" \
3678         "\n -n Don't change any file labels" \
3679         "\n -o file Save list of files with incorrect context" \
3680         "\n -v Verbose" \
3681         "\n -vv Show changed labels" \
3682         "\n -F Force reset of context to match file_context" \
3683         "\n for customizable files, or the user section," \
3684         "\n if it has changed" \
3685    
3686  #define rm_trivial_usage \  #define rm_trivial_usage \
3687         "[OPTION]... FILE..."         "[OPTIONS] FILE..."
3688  #define rm_full_usage \  #define rm_full_usage "\n\n" \
3689         "Remove (unlink) the FILE(s).  You may use '--' to\n" \         "Remove (unlink) FILEs\n" \
3690         "indicate that all following arguments are non-options." \       "\nOptions:" \
3691         "\n\nOptions:\n" \       "\n -i Always prompt before removing" \
3692         " -i Always prompt before removing each destination\n" \       "\n -f Never prompt" \
3693         " -f Remove existing destinations, never prompt\n" \       "\n -R,-r Recurse" \
3694         " -r,-R Remove the contents of directories recursively"  
3695  #define rm_example_usage \  #define rm_example_usage \
3696         "$ rm -rf /tmp/foo\n"         "$ rm -rf /tmp/foo\n"
3697    
3698  #define rmdir_trivial_usage \  #define rmdir_trivial_usage \
3699         "[OPTION]... DIRECTORY..."         "[OPTIONS] DIRECTORY..."
3700  #define rmdir_full_usage \  #define rmdir_full_usage "\n\n" \
3701         "Remove the DIRECTORY, if it is empty"         "Remove DIRECTORY if it is empty\n" \
3702         "\nOptions:" \
3703     IF_FEATURE_RMDIR_LONG_OPTIONS( \
3704         "\n -p|--parents Include parents" \
3705         "\n --ignore-fail-on-non-empty" \
3706     ) \
3707     IF_NOT_FEATURE_RMDIR_LONG_OPTIONS( \
3708         "\n -p Include parents" \
3709     )
3710    
3711  #define rmdir_example_usage \  #define rmdir_example_usage \
3712         "# rmdir /tmp/foo\n"         "# rmdir /tmp/foo\n"
3713    
3714  #define rmmod_trivial_usage \  #define rmmod_trivial_usage \
3715         "[OPTION]... [MODULE]..."         "[OPTIONS] [MODULE]..."
3716  #define rmmod_full_usage \  #define rmmod_full_usage "\n\n" \
3717         "Unload the specified kernel modules from the kernel" \         "Unload the specified kernel modules from the kernel\n" \
3718         "\n\nOptions:\n" \       "\nOptions:" \
3719         " -a Remove all unused modules (recursively)"       "\n -w Wait until the module is no longer used" \
3720         "\n -f Force unloading" \
3721         "\n -a Remove all unused modules (recursively)" \
3722    
3723  #define rmmod_example_usage \  #define rmmod_example_usage \
3724         "$ rmmod tulip\n"         "$ rmmod tulip\n"
3725    
3726  #define route_trivial_usage \  #define route_trivial_usage \
3727         "[{add|del|delete}]"         "[{add|del|delete}]"
3728  #define route_full_usage \  #define route_full_usage "\n\n" \
3729         "Edit the kernel's routing tables" \         "Edit kernel routing tables\n" \
3730         "\n\nOptions:\n" \       "\nOptions:" \
3731         " -n Dont resolve names\n" \       "\n -n Don't resolve names" \
3732         " -e Display other/more information\n" \       "\n -e Display other/more information" \
3733         " -A inet" USE_FEATURE_IPV6("{6}") " Select address family"       "\n -A inet" IF_FEATURE_IPV6("{6}") " Select address family" \
3734    
3735  #define rpm_trivial_usage \  #define rpm_trivial_usage \
3736         "-i -q[ildc]p package.rpm"         "-i -q[ildc]p PACKAGE.rpm"
3737  #define rpm_full_usage \  #define rpm_full_usage "\n\n" \
3738         "Manipulate RPM packages" \         "Manipulate RPM packages\n" \
3739         "\n\nOptions:" \       "\nOptions:" \
3740         "\n -i Install package" \       "\n -i Install package" \
3741         "\n -q Query package" \       "\n -q Query package" \
3742         "\n -p Query uninstalled package" \       "\n -p Query uninstalled package" \
3743         "\n -i Show information" \       "\n -i Show information" \
3744         "\n -l List contents" \       "\n -l List contents" \
3745         "\n -d List documents" \       "\n -d List documents" \
3746         "\n -c List config files"       "\n -c List config files" \
3747    
3748  #define rpm2cpio_trivial_usage \  #define rpm2cpio_trivial_usage \
3749         "package.rpm"         "package.rpm"
3750  #define rpm2cpio_full_usage \  #define rpm2cpio_full_usage "\n\n" \
3751         "Output a cpio archive of the rpm file"         "Output a cpio archive of the rpm file"
3752    
3753    #define rtcwake_trivial_usage \
3754           "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
3755    #define rtcwake_full_usage "\n\n" \
3756           "Enter a system sleep state until specified wakeup time\n" \
3757     IF_LONG_OPTS( \
3758         "\n -a,--auto Read clock mode from adjtime" \
3759         "\n -l,--local Clock is set to local time" \
3760         "\n -u,--utc Clock is set to UTC time" \
3761         "\n -d,--device=DEV Specify the RTC device" \
3762         "\n -m,--mode=MODE Set the sleep state (default: standby)" \
3763         "\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \
3764         "\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \
3765     ) \
3766     IF_NOT_LONG_OPTS( \
3767         "\n -a Read clock mode from adjtime" \
3768         "\n -l Clock is set to local time" \
3769         "\n -u Clock is set to UTC time" \
3770         "\n -d DEV Specify the RTC device" \
3771         "\n -m MODE Set the sleep state (default: standby)" \
3772         "\n -s SEC Set the timeout in SEC seconds from now" \
3773         "\n -t TIME Set the timeout to TIME seconds from epoch" \
3774     )
3775    
3776    #define runcon_trivial_usage \
3777           "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] PROG ARGS\n" \
3778           " runcon CONTEXT PROG ARGS"
3779    #define runcon_full_usage "\n\n" \
3780           "Run PROG in a different security context\n" \
3781         "\n CONTEXT Complete security context\n" \
3782     IF_FEATURE_RUNCON_LONG_OPTIONS( \
3783         "\n -c,--compute Compute process transition context before modifying" \
3784         "\n -t,--type=TYPE Type (for same role as parent)" \
3785         "\n -u,--user=USER User identity" \
3786         "\n -r,--role=ROLE Role" \
3787         "\n -l,--range=RNG Levelrange" \
3788     ) \
3789     IF_NOT_FEATURE_RUNCON_LONG_OPTIONS( \
3790         "\n -c Compute process transition context before modifying" \
3791         "\n -t TYPE Type (for same role as parent)" \
3792         "\n -u USER User identity" \
3793         "\n -r ROLE Role" \
3794         "\n -l RNG Levelrange" \
3795     )
3796    
3797  #define run_parts_trivial_usage \  #define run_parts_trivial_usage \
3798         "[-t] [-a ARG] [-u MASK] DIRECTORY"         "[-t] "IF_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY"
3799  #define run_parts_full_usage \  #define run_parts_full_usage "\n\n" \
3800         "Run a bunch of scripts in a directory" \         "Run a bunch of scripts in DIRECTORY\n" \
3801         "\n\nOptions:\n" \       "\nOptions:" \
3802         " -t Prints what would be run, but does not actually run anything\n" \       "\n -t Print what would be run, but don't actually run anything" \
3803         " -a ARG Pass ARG as an argument for every program invoked\n" \       "\n -a ARG Pass ARG as argument for every program" \
3804         " -u MASK Set the umask to MASK before executing every program"       "\n -u MASK Set the umask to MASK before running every program" \
3805     IF_FEATURE_RUN_PARTS_FANCY( \
3806         "\n -l Print names of all matching files even if they are not executable" \
3807     )
3808    
3809    #define run_parts_example_usage \
3810           "$ run-parts -a start /etc/init.d\n" \
3811           "$ run-parts -a stop=now /etc/init.d\n\n" \
3812           "Let's assume you have a script foo/dosomething:\n" \
3813           "#!/bin/sh\n" \
3814           "for i in $*; do eval $i; done; unset i\n" \
3815           "case \"$1\" in\n" \
3816           "start*) echo starting something;;\n" \
3817           "stop*) set -x; shutdown -h $stop;;\n" \
3818           "esac\n\n" \
3819           "Running this yields:\n" \
3820           "$run-parts -a stop=+4m foo/\n" \
3821           "+ shutdown -h +4m"
3822    
3823  #define runlevel_trivial_usage \  #define runlevel_trivial_usage \
3824         "[utmp]"         "[FILE]"
3825  #define runlevel_full_usage \  #define runlevel_full_usage "\n\n" \
3826         "Find the current and previous system runlevel.\n\n" \         "Find the current and previous system runlevel\n" \
3827         "If no utmp file exists or if no runlevel record can be found,\n" \         "\n" \
3828           "If no utmp FILE exists or if no runlevel record can be found,\n" \
3829         "print \"unknown\""         "print \"unknown\""
3830  #define runlevel_example_usage \  #define runlevel_example_usage \
3831         "$ runlevel /var/run/utmp\n" \         "$ runlevel /var/run/utmp\n" \
3832         "N 2"         "N 2"
3833    
3834  #define runsv_trivial_usage \  #define runsv_trivial_usage \
3835         "dir"         "DIR"
3836  #define runsv_full_usage \  #define runsv_full_usage "\n\n" \
3837         "Start and monitor a service and optionally an appendant log service"         "Start and monitor a service and optionally an appendant log service"
3838    
3839  #define runsvdir_trivial_usage \  #define runsvdir_trivial_usage \
3840         "[-P] dir"         "[-P] [-s SCRIPT] DIR"
3841  #define runsvdir_full_usage \  #define runsvdir_full_usage "\n\n" \
3842         "Start a runsv process for each subdirectory"         "Start a runsv process for each subdirectory. If it exits, restart it.\n" \
3843         "\n -P Put each runsv in a new session" \
3844         "\n -s SCRIPT Run SCRIPT <signo> after signal is processed" \
3845    
3846  #define rx_trivial_usage \  #define rx_trivial_usage \
3847         "FILE"         "FILE"
3848  #define rx_full_usage \  #define rx_full_usage "\n\n" \
3849         "Receive a file using the xmodem protocol"         "Receive a file using the xmodem protocol"
3850  #define rx_example_usage \  #define rx_example_usage \
3851         "$ rx /tmp/foo\n"         "$ rx /tmp/foo\n"
3852    
3853    #define script_trivial_usage \
3854           "[-afq" IF_SCRIPTREPLAY("t") "] [-c PROG] [OUTFILE]"
3855    #define script_full_usage "\n\n" \
3856           "Options:" \
3857         "\n -a Append output" \
3858         "\n -c Run PROG, not shell" \
3859         "\n -f Flush output after each write" \
3860         "\n -q Quiet" \
3861     IF_SCRIPTREPLAY( \
3862         "\n -t Send timing to stderr" \
3863     )
3864    
3865  #define sed_trivial_usage \  #define sed_trivial_usage \
3866         "[-efinr] pattern [files...]"         "[-efinr] SED_CMD [FILE]..."
3867  #define sed_full_usage \  #define sed_full_usage "\n\n" \
3868         "Options:\n" \         "Options:" \
3869         " -e script Add the script to the commands to be executed\n" \       "\n -e CMD Add CMD to sed commands to be executed" \
3870         " -f scriptfile Add script-file contents to the\n" \       "\n -f FILE Add FILE contents to sed commands to be executed" \
3871         " commands to be executed\n" \       "\n -i Edit files in-place (else sends result to stdout)" \
3872         " -i Edit files in-place\n" \       "\n -n Suppress automatic printing of pattern space" \
3873         " -n Suppress automatic printing of pattern space\n" \       "\n -r Use extended regex syntax" \
3874         " -r Use extended regular expression syntax\n" \       "\n" \
3875         "\n" \       "\nIf no -e or -f, the first non-option argument is the sed command string." \
3876         "If no -e or -f is given, the first non-option argument is taken as the sed\n" \       "\nRemaining arguments are input files (stdin if none)."
        "script to interpret. All remaining arguments are names of input files; if no\n" \  
        "input files are specified, then the standard input is read.  Source files\n" \  
        "will not be modified unless -i option is given."  
3877    
3878  #define sed_example_usage \  #define sed_example_usage \
3879         "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \         "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
3880         "bar\n"         "bar\n"
3881    
3882    #define selinuxenabled_trivial_usage NOUSAGE_STR
3883    #define selinuxenabled_full_usage ""
3884    
3885    #define sendmail_trivial_usage \
3886           "[OPTIONS] [RECIPIENT_EMAIL]..."
3887    #define sendmail_full_usage "\n\n" \
3888           "Read email from stdin and send it\n" \
3889         "\nStandard options:" \
3890         "\n -t Read additional recipients from message body" \
3891         "\n -f sender Sender (required)" \
3892         "\n -o options Various options. -oi implied, others are ignored" \
3893         "\n -i -oi synonym. implied and ignored" \
3894         "\n" \
3895         "\nBusybox specific options:" \
3896         "\n -w seconds Network timeout" \
3897         "\n -H 'PROG ARGS' Run connection helper" \
3898         "\n Examples:" \
3899         "\n -H 'exec openssl s_client -quiet -tls1 -starttls smtp" \
3900         "\n -connect smtp.gmail.com:25' <email.txt" \
3901         "\n [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3902         "\n -H 'exec openssl s_client -quiet -tls1" \
3903         "\n -connect smtp.gmail.com:465' <email.txt" \
3904         "\n [4<username_and_passwd.txt | -au<username> -ap<password>]" \
3905         "\n -S server[:port] Server" \
3906         "\n -au<username> Username for AUTH LOGIN" \
3907         "\n -ap<password> Password for AUTH LOGIN" \
3908         "\n -am<method> Authentication method. Ignored. LOGIN is implied" \
3909         "\n" \
3910         "\nOther options are silently ignored; -oi -t is implied" \
3911     IF_MAKEMIME( \
3912         "\nUse makemime applet to create message with attachments" \
3913     )
3914    
3915  #define seq_trivial_usage \  #define seq_trivial_usage \
3916         "[first [increment]] last"         "[-w] [-s SEP] [FIRST [INC]] LAST"
3917  #define seq_full_usage \  #define seq_full_usage "\n\n" \
3918         "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \         "Print numbers from FIRST to LAST, in steps of INC.\n" \
3919         "FIRST, INCREMENT default to 1" \         "FIRST, INC default to 1.\n" \
3920         "\n\nArguments:\n" \       "\nOptions:" \
3921         " LAST\n" \       "\n -w Pad to last with leading zeros" \
3922         " FIRST LAST\n" \       "\n -s SEP String separator" \
3923         " FIRST INCREMENT LAST"  
3924    #define sestatus_trivial_usage \
3925           "[-vb]"
3926    #define sestatus_full_usage "\n\n" \
3927           " -v Verbose" \
3928         "\n -b Display current state of booleans" \
3929    
3930  #define setconsole_trivial_usage \  #define setconsole_trivial_usage \
3931         "[-r|--reset] [DEVICE]"         "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
3932  #define setconsole_full_usage \  #define setconsole_full_usage "\n\n" \
3933         "Redirect system console output to DEVICE (default: /dev/tty)" \         "Redirect system console output to DEVICE (default: /dev/tty)\n" \
3934         "\n\nOptions:\n" \       "\nOptions:" \
3935         " -r Reset output to /dev/console"       "\n -r Reset output to /dev/console" \
3936    
3937    #define setenforce_trivial_usage \
3938           "[Enforcing | Permissive | 1 | 0]"
3939    #define setenforce_full_usage ""
3940    
3941    #define setfiles_trivial_usage \
3942           "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" \
3943     IF_FEATURE_SETFILES_CHECK_OPTION( \
3944           " [-c policyfile] spec_file" \
3945     ) \
3946           " pathname"
3947    #define setfiles_full_usage "\n\n" \
3948           "Reset file contexts under pathname according to spec_file\n" \
3949     IF_FEATURE_SETFILES_CHECK_OPTION( \
3950         "\n -c FILE Check the validity of the contexts against the specified binary policy" \
3951     ) \
3952         "\n -d Show which specification matched each file" \
3953         "\n -l Log changes in file labels to syslog" \
3954         "\n -n Don't change any file labels" \
3955         "\n -q Suppress warnings" \
3956         "\n -r DIR Use an alternate root path" \
3957         "\n -e DIR Exclude DIR" \
3958         "\n -F Force reset of context to match file_context for customizable files" \
3959         "\n -o FILE Save list of files with incorrect context" \
3960         "\n -s Take a list of files from stdin (instead of command line)" \
3961         "\n -v Show changes in file labels, if type or role are changing" \
3962         "\n -vv Show changes in file labels, if type, role, or user are changing" \
3963         "\n -W Display warnings about entries that had no matching files" \
3964    
3965    #define setfont_trivial_usage \
3966           "FONT [-m MAPFILE] [-C TTY]"
3967    #define setfont_full_usage "\n\n" \
3968           "Load a console font\n" \
3969         "\nOptions:" \
3970         "\n -m MAPFILE Load console screen map" \
3971         "\n -C TTY Affect TTY instead of /dev/tty" \
3972    
3973    #define setfont_example_usage \
3974           "$ setfont -m koi8-r /etc/i18n/fontname\n"
3975    
3976  #define setkeycodes_trivial_usage \  #define setkeycodes_trivial_usage \
3977         "SCANCODE KEYCODE ..."         "SCANCODE KEYCODE..."
3978  #define setkeycodes_full_usage \  #define setkeycodes_full_usage "\n\n" \
3979         "Set entries into the kernel's scancode-to-keycode map,\n" \         "Set entries into the kernel's scancode-to-keycode map,\n" \
3980         "allowing unusual keyboards to generate usable keycodes.\n\n" \         "allowing unusual keyboards to generate usable keycodes.\n\n" \
3981         "SCANCODE may be either xx or e0xx (hexadecimal),\n" \         "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
3982         "and KEYCODE is given in decimal"         "and KEYCODE is given in decimal." \
3983    
3984  #define setkeycodes_example_usage \  #define setkeycodes_example_usage \
3985         "$ setkeycodes e030 127\n"         "$ setkeycodes e030 127\n"
3986    
3987  #define setlogcons_trivial_usage \  #define setlogcons_trivial_usage \
3988         "N"         "N"
3989  #define setlogcons_full_usage \  #define setlogcons_full_usage "\n\n" \
3990         "Redirect the kernel output to console N (0 for current)"         "Redirect the kernel output to console N (0 for current)"
3991    
3992    #define setsebool_trivial_usage \
3993           "boolean value"
3994    
3995    #define setsebool_full_usage "\n\n" \
3996           "Change boolean setting"
3997    
3998  #define setsid_trivial_usage \  #define setsid_trivial_usage \
3999         "program [arg ...]"         "PROG ARGS"
4000  #define setsid_full_usage \  #define setsid_full_usage "\n\n" \
4001         "Run any program in a new session by calling setsid() before\n" \         "Run PROG in a new session. PROG will have no controlling terminal\n" \
4002         "exec'ing the rest of its arguments.  See setsid(2) for details."         "and will not be affected by keyboard signals (Ctrl-C etc).\n" \
4003           "See setsid(2) for details." \
 #define lash_trivial_usage \  
        "[FILE]...\n" \  
        "or: sh -c command [args]..."  
 #define lash_full_usage \  
        "The BusyBox LAme SHell (command interpreter)"  
 #define lash_notes_usage \  
        "This command does not yet have proper documentation.\n\n" \  
        "Use lash just as you would use any other shell.  It properly handles pipes,\n" \  
        "redirects, job control, can be used as the shell for scripts, and has a\n" \  
        "sufficient set of builtins to do what is needed.  It does not (yet) support\n" \  
        "Bourne Shell syntax.  If you need things like \"if-then-else\", \"while\", and such\n" \  
        "use ash or bash.  If you just need a very simple and extremely small shell,\n" \  
        "this will do the job."  
4004    
4005  #define last_trivial_usage \  #define last_trivial_usage \
4006         ""         ""IF_FEATURE_LAST_FANCY("[-HW] [-f file]")
4007  #define last_full_usage \  #define last_full_usage "\n\n" \
4008         "Show listing of the last users that logged into the system"         "Show listing of the last users that logged into the system" \
4009     IF_FEATURE_LAST_FANCY( "\n" \
4010         "\nOptions:" \
4011    /*   "\n -H Show header line" */ \
4012         "\n -W Display with no host column truncation" \
4013         "\n -f file Read from file instead of /var/log/wtmp" \
4014     )
4015    
4016  #define sha1sum_trivial_usage \  #define showkey_trivial_usage \
4017         "[OPTION] [FILEs...]" \         "[-a | -k | -s]"
4018   USE_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha1sum [OPTION] -c [FILE]")  #define showkey_full_usage "\n\n" \
4019  #define sha1sum_full_usage \         "Show keys pressed\n" \
4020         "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n" \       "\nOptions:" \
4021         "With no FILE, or when FILE is -, read standard input." \       "\n -a Display decimal/octal/hex values of the keys" \
4022         "\n\nOptions:\n" \       "\n -k Display interpreted keycodes (default)" \
4023   USE_FEATURE_MD5_SHA1_SUM_CHECK( \       "\n -s Display raw scan-codes" \
4024         " -c Check SHA1 sums against given list\n" \  
4025         "\nThe following two options are useful only when verifying checksums:\n" \  #define slattach_trivial_usage \
4026         " -s Don't output anything, status code shows success\n" \         "[-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE"
4027         " -w Warn about improperly formatted SHA1 checksum lines")  #define slattach_full_usage "\n\n" \
4028           "Attach network interface(s) to serial line(s)\n" \
4029         "\nOptions:" \
4030         "\n -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)" \
4031         "\n -s SPD Set line speed" \
4032         "\n -e Exit after initializing device" \
4033         "\n -h Exit when the carrier is lost" \
4034         "\n -c PROG Run PROG when the line is hung up" \
4035         "\n -m Do NOT initialize the line in raw 8 bits mode" \
4036         "\n -L Enable 3-wire operation" \
4037         "\n -F Disable RTS/CTS flow control" \
4038    
4039  #define sleep_trivial_usage \  #define sleep_trivial_usage \
4040   USE_FEATURE_FANCY_SLEEP("[") "N" USE_FEATURE_FANCY_SLEEP("]...")   IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...")
4041  #define sleep_full_usage \  #define sleep_full_usage "\n\n" \
4042   SKIP_FEATURE_FANCY_SLEEP("Pause for N seconds") \   IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds") \
4043   USE_FEATURE_FANCY_SLEEP( \   IF_FEATURE_FANCY_SLEEP( \
4044         "Pause for a time equal to the total of the args given, where each arg can\n" \         "Pause for a time equal to the total of the args given, where each arg can\n" \
4045         "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")         "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")
4046  #define sleep_example_usage \  #define sleep_example_usage \
4047         "$ sleep 2\n" \         "$ sleep 2\n" \
4048         "[2 second delay results]\n" \         "[2 second delay results]\n" \
4049   USE_FEATURE_FANCY_SLEEP( \   IF_FEATURE_FANCY_SLEEP( \
4050         "$ sleep 1d 3h 22m 8s\n" \         "$ sleep 1d 3h 22m 8s\n" \
4051         "[98528 second delay results]\n")         "[98528 second delay results]\n")
4052    
4053  #define sort_trivial_usage \  #define sort_trivial_usage \
4054         "[-nru" \         "[-nru" \
4055   USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") \   IF_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") \
4056         "] [FILE]..."         "] [FILE]..."
4057  #define sort_full_usage \  #define sort_full_usage "\n\n" \
4058         "Sort lines of text in the specified files" \         "Sort lines of text\n" \
4059         "\n\nOptions:\n" \       "\nOptions:" \
4060   USE_FEATURE_SORT_BIG( \   IF_FEATURE_SORT_BIG( \
4061         " -b Ignore leading blanks\n" \       "\n -b Ignore leading blanks" \
4062         " -c Check whether input is sorted\n" \       "\n -c Check whether input is sorted" \
4063         " -d Dictionary order (blank or alphanumeric only)\n" \       "\n -d Dictionary order (blank or alphanumeric only)" \
4064         " -f Ignore case\n" \       "\n -f Ignore case" \
4065         " -g General numerical sort\n" \       "\n -g General numerical sort" \
4066         " -i Ignore unprintable characters\n" \       "\n -i Ignore unprintable characters" \
4067         " -k Specify sort key\n" \       "\n -k Sort key" \
4068         " -M Sort month\n") \       "\n -M Sort month" \
4069         " -n Sort numbers\n" \   ) \
4070   USE_FEATURE_SORT_BIG( \       "\n -n Sort numbers" \
4071         " -o Output to file\n" \   IF_FEATURE_SORT_BIG( \
4072         " -k Sort by key\n" \       "\n -o Output to file" \
4073         " -t Use key separator other than whitespace\n") \       "\n -k Sort by key" \
4074         " -r Reverse sort order\n" \       "\n -t CHAR Key separator" \
4075   USE_FEATURE_SORT_BIG( \   ) \
4076         " -s Stable (don't sort ties alphabetically)\n") \       "\n -r Reverse sort order" \
4077         " -u Suppress duplicate lines" \   IF_FEATURE_SORT_BIG( \
4078   USE_FEATURE_SORT_BIG( \       "\n -s Stable (don't sort ties alphabetically)" \
4079         "\n -z Input terminated by nulls, not newlines\n") \   ) \
4080   USE_FEATURE_SORT_BIG( \       "\n -u Suppress duplicate lines" \
4081         " -mST Ignored for GNU compatibility") \   IF_FEATURE_SORT_BIG( \
4082         ""       "\n -z Lines are terminated by NUL, not newline" \
4083         "\n -mST Ignored for GNU compatibility") \
4084    
4085  #define sort_example_usage \  #define sort_example_usage \
4086         "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \         "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
4087         "a\n" \         "a\n" \
# Line 2840  Line 4090 
4090         "d\n" \         "d\n" \
4091         "e\n" \         "e\n" \
4092         "f\n" \         "f\n" \
4093   USE_FEATURE_SORT_BIG( \   IF_FEATURE_SORT_BIG( \
4094   "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \   "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
4095   "d 2\n" \   "d 2\n" \
4096   "b 2\n" \   "b 2\n" \
# Line 2848  Line 4098 
4098   ) \   ) \
4099         ""         ""
4100    
4101    #define split_trivial_usage \
4102           "[OPTIONS] [INPUT [PREFIX]]"
4103    #define split_full_usage "\n\n" \
4104           "Options:" \
4105         "\n -b n[k|m] Split by bytes" \
4106         "\n -l n Split by lines" \
4107         "\n -a n Use n letters as suffix" \
4108    
4109    #define split_example_usage \
4110           "$ split TODO foo\n" \
4111           "$ cat TODO | split -a 2 -l 2 TODO_\n"
4112    
4113  #define start_stop_daemon_trivial_usage \  #define start_stop_daemon_trivial_usage \
4114         "[OPTIONS] [--start|--stop] ... [-- arguments...]"         "[OPTIONS] [-S|-K] ... [-- ARGS...]"
4115  #define start_stop_daemon_full_usage \  #define start_stop_daemon_full_usage "\n\n" \
4116         "Start and stop services" \         "Search for matching processes, and then\n" \
4117         "\n\nOptions:" \         "-K: stop all matching processes.\n" \
4118         "\n -S|--start Start" \         "-S: start a process unless a matching process is found.\n" \
4119         "\n -K|--stop Stop" \   IF_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
4120         "\n -a|--startas <pathname> Starts process specified by pathname" \       "\nProcess matching:" \
4121         "\n -b|--background Force process into background" \       "\n -u,--user USERNAME|UID Match only this user's processes" \
4122         "\n -u|--user <username>|<uid> Stop this user's processes" \       "\n -n,--name NAME Match processes with NAME" \
4123         "\n -x|--exec <executable> Program to either start or check" \       "\n in comm field in /proc/PID/stat" \
4124         "\n -m|--make-pidfile Create the -p file and enter pid in it" \       "\n -x,--exec EXECUTABLE Match processes with this command" \
4125         "\n -n|--name <process-name> Stop processes with this name" \       "\n in /proc/PID/cmdline" \
4126         "\n -p|--pidfile <pid-file> Save or load pid using a pid-file" \       "\n -p,--pidfile FILE Match a process with PID from the file" \
4127         "\n -q|--quiet Be quiet" \       "\n All specified conditions must match" \
4128   USE_FEATURE_START_STOP_DAEMON_FANCY( \       "\n-S only:" \
4129         "\n -o|--oknodo Exit status 0 if nothing done" \       "\n -x,--exec EXECUTABLE Program to run" \
4130         "\n -v|--verbose Be verbose" \       "\n -a,--startas NAME Zeroth argument" \
4131         "\n -N|--nicelevel <N> Add N to process's nice level" \       "\n -b,--background Background" \
4132     IF_FEATURE_START_STOP_DAEMON_FANCY( \
4133         "\n -N,--nicelevel N Change nice level" \
4134     ) \
4135         "\n -c,--chuid USER[:[GRP]] Change to user/group" \
4136         "\n -m,--make-pidfile Write PID to the pidfile specified by -p" \
4137         "\n-K only:" \
4138         "\n -s,--signal SIG Signal to send" \
4139         "\n -t,--test Match only, exit with 0 if a process is found" \
4140         "\nOther:" \
4141     IF_FEATURE_START_STOP_DAEMON_FANCY( \
4142         "\n -o,--oknodo Exit with status 0 if nothing is done" \
4143         "\n -v,--verbose Verbose" \
4144     ) \
4145         "\n -q,--quiet Quiet" \
4146     ) \
4147     IF_NOT_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
4148         "\nProcess matching:" \
4149         "\n -u USERNAME|UID Match only this user's processes" \
4150         "\n -n NAME Match processes with NAME" \
4151         "\n in comm field in /proc/PID/stat" \
4152         "\n -x EXECUTABLE Match processes with this command" \
4153         "\n command in /proc/PID/cmdline" \
4154         "\n -p FILE Match a process with PID from the file" \
4155         "\n All specified conditions must match" \
4156         "\n-S only:" \
4157         "\n -x EXECUTABLE Program to run" \
4158         "\n -a NAME Zeroth argument" \
4159         "\n -b Background" \
4160     IF_FEATURE_START_STOP_DAEMON_FANCY( \
4161         "\n -N N Change nice level" \
4162     ) \
4163         "\n -c USER[:[GRP]] Change to user/group" \
4164         "\n -m Write PID to the pidfile specified by -p" \
4165         "\n-K only:" \
4166         "\n -s SIG Signal to send" \
4167         "\n -t Match only, exit with 0 if a process is found" \
4168         "\nOther:" \
4169     IF_FEATURE_START_STOP_DAEMON_FANCY( \
4170         "\n -o Exit with status 0 if nothing is done" \
4171         "\n -v Verbose" \
4172     ) \
4173         "\n -q Quiet" \
4174   ) \   ) \
        "\n -s|--signal <signal> Signal to send (default TERM)" \  
        "\n -U|--chuid <username>|<uid> Start process with this name"  
4175    
4176  #define stat_trivial_usage \  #define stat_trivial_usage \
4177         "[OPTION] FILE..."         "[OPTIONS] FILE..."
4178  #define stat_full_usage \  #define stat_full_usage "\n\n" \
4179         "Display file (default) or filesystem status" \         "Display file (default) or filesystem status\n" \
4180         "\n\nOptions:\n" \       "\nOptions:" \
4181   USE_FEATURE_STAT_FORMAT( \   IF_FEATURE_STAT_FORMAT( \
4182         " -c fmt Use the specified format\n") \       "\n -c fmt Use the specified format" \
4183         " -f Display filesystem status\n" \   ) \
4184         " -L,-l Dereference links\n" \       "\n -f Display filesystem status" \
4185         " -t Display info in terse form" \       "\n -L Follow links" \
4186   USE_FEATURE_STAT_FORMAT( \       "\n -t Display info in terse form" \
4187     IF_SELINUX( \
4188         "\n -Z Print security context" \
4189     ) \
4190     IF_FEATURE_STAT_FORMAT( \
4191         "\n\nValid format sequences for files:\n" \         "\n\nValid format sequences for files:\n" \
4192         " %a Access rights in octal\n" \         " %a Access rights in octal\n" \
4193         " %A Access rights in human readable form\n" \         " %A Access rights in human readable form\n" \
# Line 2896  Line 4202 
4202         " %h Number of hard links\n" \         " %h Number of hard links\n" \
4203         " %i Inode number\n" \         " %i Inode number\n" \
4204         " %n File name\n" \         " %n File name\n" \
4205         " %N Quoted file name with dereference if symbolic link\n" \         " %N File name, with -> TARGET if symlink\n" \
4206         " %o I/O block size\n" \         " %o I/O block size\n" \
4207         " %s Total size, in bytes\n" \         " %s Total size, in bytes\n" \
4208         " %t Major device type in hex\n" \         " %t Major device type in hex\n" \
# Line 2915  Line 4221 
4221         " %c Total file nodes in file system\n" \         " %c Total file nodes in file system\n" \
4222         " %d Free file nodes in file system\n" \         " %d Free file nodes in file system\n" \
4223         " %f Free blocks in file system\n" \         " %f Free blocks in file system\n" \
4224     IF_SELINUX( \
4225           " %C Security context in SELinux\n" \
4226     ) \
4227         " %i File System ID in hex\n" \         " %i File System ID in hex\n" \
4228         " %l Maximum length of filenames\n" \         " %l Maximum length of filenames\n" \
4229         " %n File name\n" \         " %n File name\n" \
4230         " %s Block size (for faster transfers)\n" \         " %s Block size (for faster transfer)\n" \
4231         " %S Fundamental block size (for block counts)\n" \         " %S Fundamental block size (for block counts)\n" \
4232         " %t Type in hex\n" \         " %t Type in hex\n" \
4233         " %T Type in human readable form" \         " %T Type in human readable form" \
4234   )   ) \
4235    
4236  #define strings_trivial_usage \  #define strings_trivial_usage \
4237         "[-afo] [-n length] [file ... ]"         "[-afo] [-n LEN] [FILE]..."
4238  #define strings_full_usage \  #define strings_full_usage "\n\n" \
4239         "Display printable strings in a binary file" \         "Display printable strings in a binary file\n" \
4240         "\n\nOptions:" \       "\nOptions:" \
4241         "\n -a Scan the whole files (this is the default)" \       "\n -a Scan whole file (default)" \
4242         "\n -f Precede each string with the name of the file where it was found" \       "\n -f Precede strings with filenames" \
4243         "\n -n N Specifies that at least N characters forms a sequence (default 4)" \       "\n -n LEN At least LEN characters form a string (default 4)" \
4244         "\n -o Each string is preceded by its decimal offset in the file"       "\n -o Precede strings with decimal offsets" \
4245    
4246  #define stty_trivial_usage \  #define stty_trivial_usage \
4247         "[-a|g] [-F DEVICE] [SETTING]..."         "[-a|g] [-F DEVICE] [SETTING]..."
4248  #define stty_full_usage \  #define stty_full_usage "\n\n" \
4249         "Without arguments, prints baud rate, line discipline,\n" \         "Without arguments, prints baud rate, line discipline,\n" \
4250         "and deviations from stty sane" \         "and deviations from stty sane\n" \
4251         "\n\nOptions:" \       "\nOptions:" \
4252         "\n -F DEVICE Open device instead of stdin" \       "\n -F DEVICE Open device instead of stdin" \
4253         "\n -a Print all current settings in human-readable form" \       "\n -a Print all current settings in human-readable form" \
4254         "\n -g Print in stty-readable form" \       "\n -g Print in stty-readable form" \
4255         "\n [SETTING] See manpage"       "\n [SETTING] See manpage" \
4256    
4257  #define su_trivial_usage \  #define su_trivial_usage \
4258         "[OPTION]... [-] [username]"         "[OPTIONS] [-] [USERNAME]"
4259  #define su_full_usage \  #define su_full_usage "\n\n" \
4260         "Change user id or become root" \         "Change user id or become root\n" \
4261         "\n\nOptions:" \       "\nOptions:" \
4262         "\n -p, -m Preserve environment" \       "\n -p,-m Preserve environment" \
4263         "\n -c Command to pass to 'sh -c'" \       "\n -c CMD Command to pass to 'sh -c'" \
4264         "\n -s Shell to use instead of default shell"       "\n -s SH Shell to use instead of default shell" \
4265    
4266  #define sulogin_trivial_usage \  #define sulogin_trivial_usage \
4267         "[OPTION]... [tty-device]"         "[-t N] [TTY]"
4268  #define sulogin_full_usage \  #define sulogin_full_usage "\n\n" \
4269         "Single user login" \         "Single user login\n" \
4270         "\n\nOptions:" \       "\nOptions:" \
4271         "\n -t Timeout"       "\n -t N Timeout" \
4272    
4273  #define sum_trivial_usage \  #define sum_trivial_usage \
4274         "[rs] [files...]"         "[-rs] [FILE]..."
4275  #define sum_full_usage \  #define sum_full_usage "\n\n" \
4276         "Checksum and count the blocks in a file" \         "Checksum and count the blocks in a file\n" \
4277         "\n\nOptions:\n" \       "\nOptions:" \
4278         " -r Use BSD sum algorithm (1K blocks)\n" \       "\n -r Use BSD sum algorithm (1K blocks)" \
4279         " -s Use System V sum algorithm (512byte blocks)"       "\n -s Use System V sum algorithm (512byte blocks)" \
4280    
4281  #define sv_trivial_usage \  #define sv_trivial_usage \
4282         "[-v] [-w sec] command service..."         "[-v] [-w SEC] CMD SERVICE_DIR..."
4283  #define sv_full_usage \  #define sv_full_usage "\n\n" \
4284         "Report the current status and control the state of services " \         "Control services monitored by runsv supervisor.\n" \
4285         "monitored by the runsv supervisor"         "Commands (only first character is enough):\n" \
4286           "\n" \
4287           "status: query service status\n" \
4288           "up: if service isn't running, start it. If service stops, restart it\n" \
4289           "once: like 'up', but if service stops, don't restart it\n" \
4290           "down: send TERM and CONT signals. If ./run exits, start ./finish\n" \
4291           " if it exists. After it stops, don't restart service\n" \
4292           "exit: send TERM and CONT signals to service and log service. If they exit,\n" \
4293           " runsv exits too\n" \
4294           "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \
4295           "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \
4296    
4297  #define svlogd_trivial_usage \  #define svlogd_trivial_usage \
4298         "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..."         "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..."
4299  #define svlogd_full_usage \  #define svlogd_full_usage "\n\n" \
4300         "Continuously read log data from standard input, optionally " \         "Continuously read log data from stdin, optionally\n" \
4301         "filter log messages, and write the data to one or more automatically " \         "filter log messages, and write the data to one or more automatically\n" \
4302         "rotated logs"         "rotated logs" \
4303    
4304  #define swapoff_trivial_usage \  #define swapoff_trivial_usage \
4305         "[-a] [DEVICE]"         "[-a] [DEVICE]"
4306  #define swapoff_full_usage \  #define swapoff_full_usage "\n\n" \
4307         "Stop swapping virtual memory pages on DEVICE" \         "Stop swapping on DEVICE\n" \
4308         "\n\nOptions:\n" \       "\nOptions:" \
4309         " -a Stop swapping on all swap devices"       "\n -a Stop swapping on all swap devices" \
4310    
4311  #define swapon_trivial_usage \  #define swapon_trivial_usage \
4312         "[-a] [DEVICE]"         "[-a]" IF_FEATURE_SWAPON_PRI(" [-p PRI]") " [DEVICE]"
4313  #define swapon_full_usage \  #define swapon_full_usage "\n\n" \
4314         "Start swapping virtual memory pages on DEVICE" \         "Start swapping on DEVICE\n" \
4315         "\n\nOptions:\n" \       "\nOptions:" \
4316         " -a Start swapping on all swap devices"       "\n -a Start swapping on all swap devices" \
4317     IF_FEATURE_SWAPON_PRI( \
4318         "\n -p PRI Set swap device priority" \
4319     ) \
4320    
4321  #define switch_root_trivial_usage \  #define switch_root_trivial_usage \
4322         "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]"         "[-c /dev/console] NEW_ROOT NEW_INIT [ARGS]"
4323  #define switch_root_full_usage \  #define switch_root_full_usage "\n\n" \
4324         "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \         "Free initramfs and switch to another root fs:\n" \
4325         "and exec NEW_INIT" \         "chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,\n" \
4326         "\n\nOptions:\n" \         "execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.\n" \
4327         " -c Redirect console to device on new root"       "\nOptions:" \
4328         "\n -c DEV Reopen stdio to DEV after switch" \
4329    
4330  #define sync_trivial_usage \  #define sync_trivial_usage \
4331         ""         ""
4332  #define sync_full_usage \  #define sync_full_usage "\n\n" \
4333         "Write all buffered filesystem blocks to disk"         "Write all buffered blocks to disk"
4334    
4335    #define fsync_trivial_usage \
4336           "[OPTIONS] FILE..."
4337    #define fsync_full_usage "\n\n" \
4338           "Write files' buffered blocks to disk\n" \
4339         "\nOptions:" \
4340         "\n -d Avoid syncing metadata"
4341    
4342  #define sysctl_trivial_usage \  #define sysctl_trivial_usage \
4343         "[OPTIONS]... [VALUE]..."         "[OPTIONS] [VALUE]..."
4344  #define sysctl_full_usage \  #define sysctl_full_usage "\n\n" \
4345         "Configure kernel parameters at runtime" \         "Configure kernel parameters at runtime\n" \
4346         "\n\nOptions:\n" \       "\nOptions:" \
4347         " -n Use this option to disable printing of the key name when printing values\n" \       "\n -n Don't print key names" \
4348         " -w Use this option when you want to change a sysctl setting\n" \       "\n -e Don't warn about unknown keys" \
4349         " -p Load in sysctl settings from the file specified or /etc/sysctl.conf if none given\n" \       "\n -w Change sysctl setting" \
4350         " -a Display all values currently available\n" \       "\n -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)" \
4351         " -A Display all values currently available in table form"       "\n -a Display all values" \
4352         "\n -A Display all values in table form" \
4353    
4354  #define sysctl_example_usage \  #define sysctl_example_usage \
4355         "sysctl [-n] variable ...\n" \         "sysctl [-n] [-e] variable...\n" \
4356         "sysctl [-n] -w variable=value ...\n" \         "sysctl [-n] [-e] -w variable=value...\n" \
4357         "sysctl [-n] -a\n" \         "sysctl [-n] [-e] -a\n" \
4358         "sysctl [-n] -p <file> (default /etc/sysctl.conf)\n" \         "sysctl [-n] [-e] -p file (default /etc/sysctl.conf)\n" \
4359         "sysctl [-n] -A\n"         "sysctl [-n] [-e] -A\n"
4360    
4361  #define syslogd_trivial_usage \  #define syslogd_trivial_usage \
4362         "[OPTION]..."         "[OPTIONS]"
4363  #define syslogd_full_usage \  #define syslogd_full_usage "\n\n" \
4364         "System logging utility.\n" \         "System logging utility.\n" \
4365         "Note that this version of syslogd ignores /etc/syslog.conf." \         "This version of syslogd ignores /etc/syslog.conf\n" \
4366         "\n\nOptions:" \       "\nOptions:" \
4367         "\n -m MIN Minutes between MARK lines (default=20, 0=off)" \       "\n -n Run in foreground" \
4368         "\n -n Run as foreground process" \       "\n -O FILE Log to given file (default:/var/log/messages)" \
4369         "\n -O FILE Use an alternate log file (default=/var/log/messages)" \       "\n -l N Set local log level" \
4370         "\n -l n Sets the local log level of messages to n" \       "\n -S Smaller logging output" \
4371         "\n -S Make logging output smaller" \   IF_FEATURE_ROTATE_LOGFILE( \
4372   USE_FEATURE_ROTATE_LOGFILE( \       "\n -s SIZE Max size (KB) before rotate (default:200KB, 0=off)" \
4373         "\n -s SIZE Max size (KB) before rotate (default=200KB, 0=off)" \       "\n -b N N rotated logs to keep (default:1, max=99, 0=purge)") \
4374         "\n -b NUM Number of rotated logs to keep (default=1, max=99, 0=purge)") \   IF_FEATURE_REMOTE_LOG( \
4375   USE_FEATURE_REMOTE_LOG( \       "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \
4376         "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \       "\n -L Log locally and via network (default is network only if -R)") \
4377         "\n -L Log locally and via network logging (default is network only)") \   IF_FEATURE_SYSLOGD_DUP( \
4378   USE_FEATURE_IPC_SYSLOG( \       "\n -D Drop duplicates") \
4379         "\n -C[size(KiB)] Log to a shared mem buffer (read the buffer using logread)")   IF_FEATURE_IPC_SYSLOG( \
4380         "\n -C[size(KiB)] Log to shared mem buffer (read it using logread)") \
4381   /* NB: -Csize shouldn't have space (because size is optional) */   /* NB: -Csize shouldn't have space (because size is optional) */
4382    /*   "\n -m MIN Minutes between MARK lines (default:20, 0=off)" */
4383    
4384  #define syslogd_example_usage \  #define syslogd_example_usage \
4385         "$ syslogd -R masterlog:514\n" \         "$ syslogd -R masterlog:514\n" \
4386         "$ syslogd -R 192.168.1.1:601\n"         "$ syslogd -R 192.168.1.1:601\n"
4387    
4388    #define tac_trivial_usage \
4389     "[FILE]..."
4390    #define tac_full_usage "\n\n" \
4391     "Concatenate FILEs and print them in reverse"
4392    
4393  #define tail_trivial_usage \  #define tail_trivial_usage \
4394         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
4395  #define tail_full_usage \  #define tail_full_usage "\n\n" \
4396         "Print last 10 lines of each FILE to standard output.\n" \         "Print last 10 lines of each FILE (or stdin) to stdout.\n" \
4397         "With more than one FILE, precede each with a header giving the\n" \         "With more than one FILE, precede each with a header giving the file name.\n" \
4398         "file name. With no FILE, or when FILE is -, read standard input." \       "\nOptions:" \
4399         "\n\nOptions:" \   IF_FEATURE_FANCY_TAIL( \
4400   USE_FEATURE_FANCY_TAIL( \       "\n -c N[kbm] Output last N bytes") \
4401         "\n -c N[kbm] Output the last N bytes") \       "\n -n N[kbm] Print last N lines instead of last 10" \
4402         "\n -n N[kbm] Print last N lines instead of last 10" \       "\n -f Output data as the file grows" \
4403         "\n -f Output data as the file grows" \   IF_FEATURE_FANCY_TAIL( \
4404   USE_FEATURE_FANCY_TAIL( \       "\n -q Never output headers giving file names" \
4405         "\n -q Never output headers giving file names" \       "\n -s SEC Wait SEC seconds between reads with -f" \
4406         "\n -s SEC Wait SEC seconds between reads with -f" \       "\n -v Always output headers giving file names" \
4407         "\n -v Always output headers giving file names" \       "\n" \
4408         "\n\n" \       "\nIf the first character of N (bytes or lines) is a '+', output begins with" \
4409         "If the first character of N (bytes or lines) is a '+', output begins with\n" \       "\nthe Nth item from the start of each file, otherwise, print the last N items" \
4410         "the Nth item from the start of each file, otherwise, print the last N items\n" \       "\nin the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." ) \
4411         "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." )  
4412  #define tail_example_usage \  #define tail_example_usage \
4413         "$ tail -n 1 /etc/resolv.conf\n" \         "$ tail -n 1 /etc/resolv.conf\n" \
4414         "nameserver 10.0.0.1\n"         "nameserver 10.0.0.1\n"
4415    
4416  #define tar_trivial_usage \  #define tar_trivial_usage \
4417         "-[" USE_FEATURE_TAR_CREATE("c") USE_FEATURE_TAR_GZIP("z") \         "-[" IF_FEATURE_TAR_CREATE("c") "xt" IF_FEATURE_SEAMLESS_GZ("z") \
4418   USE_FEATURE_TAR_BZIP2("j") USE_FEATURE_TAR_LZMA("a") \   IF_FEATURE_SEAMLESS_BZ2("j") IF_FEATURE_SEAMLESS_LZMA("a") \
4419   USE_FEATURE_TAR_COMPRESS("Z") "xtvO] " \   IF_FEATURE_SEAMLESS_Z("Z") IF_FEATURE_TAR_NOPRESERVE_TIME("m") "vO] " \
4420   USE_FEATURE_TAR_FROM("[-X FILE] ") \   IF_FEATURE_TAR_FROM("[-X FILE] ") \
4421         "[-f TARFILE] [-C DIR] [FILE(s)] ..."         "[-f TARFILE] [-C DIR] [FILE]..."
4422  #define tar_full_usage \  #define tar_full_usage "\n\n" \
4423         "Create, extract, or list files from a tar file" \   IF_FEATURE_TAR_CREATE("Create, extract, ") \
4424         "\n\nOptions:\n" \   IF_NOT_FEATURE_TAR_CREATE("Extract ") \
4425   USE_FEATURE_TAR_CREATE( \         "or list files from a tar file\n" \
4426         " c Create\n") \       "\nOptions:" \
4427         " x Extract\n" \   IF_FEATURE_TAR_CREATE( \
4428         " t List\n" \       "\n c Create" \
4429         "\nArchive format selection:\n" \   ) \
4430   USE_FEATURE_TAR_GZIP( \       "\n x Extract" \
4431         " z Filter the archive through gzip\n") \       "\n t List" \
4432   USE_FEATURE_TAR_BZIP2( \       "\nArchive format selection:" \
4433         " j Filter the archive through bzip2\n") \   IF_FEATURE_SEAMLESS_GZ( \
4434   USE_FEATURE_TAR_LZMA( \       "\n z Filter the archive through gzip" \
4435         " a Filter the archive through lzma\n") \   ) \
4436   USE_FEATURE_TAR_COMPRESS( \   IF_FEATURE_SEAMLESS_BZ2( \
4437         " Z Filter the archive through compress\n") \       "\n j Filter the archive through bzip2" \
4438         "\nFile selection:\n" \   ) \
4439         " f Name of TARFILE or \"-\" for stdin\n" \   IF_FEATURE_SEAMLESS_LZMA( \
4440         " O Extract to stdout\n" \       "\n a Filter the archive through lzma" \
4441   USE_FEATURE_TAR_FROM( \   ) \
4442         " exclude File to exclude\n" \   IF_FEATURE_SEAMLESS_Z( \
4443         " X File with names to exclude\n") \       "\n Z Filter the archive through compress" \
4444         " C Change to directory DIR before operation\n" \   ) \
4445         " v Verbosely list files processed"   IF_FEATURE_TAR_NOPRESERVE_TIME( \
4446         "\n m Do not restore mtime" \
4447     ) \
4448         "\nFile selection:" \
4449         "\n f Name of TARFILE or \"-\" for stdin" \
4450         "\n O Extract to stdout" \
4451     IF_FEATURE_TAR_FROM( \
4452     IF_FEATURE_TAR_LONG_OPTIONS( \
4453         "\n exclude File to exclude" \
4454     ) \
4455         "\n X File with names to exclude" \
4456     ) \
4457         "\n C Change to DIR before operation" \
4458         "\n v Verbose" \
4459    
4460  #define tar_example_usage \  #define tar_example_usage \
4461         "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \         "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
4462         "$ tar -cf /tmp/tarball.tar /usr/local\n"         "$ tar -cf /tmp/tarball.tar /usr/local\n"
4463    
4464  #define taskset_trivial_usage \  #define taskset_trivial_usage \
4465         "[OPTIONS] [mask] [pid | command [arg]...]"         "[-p] [MASK] [PID | PROG ARGS]"
4466  #define taskset_full_usage \  #define taskset_full_usage "\n\n" \
4467         "Set or get CPU affinity" \         "Set or get CPU affinity\n" \
4468         "\n\nOptions:\n" \       "\nOptions:" \
4469         " -p Operate on an existing PID"       "\n -p Operate on an existing PID" \
4470    
4471  #define taskset_example_usage \  #define taskset_example_usage \
4472         "$ taskset 0x7 ./dgemm_test&\n" \         "$ taskset 0x7 ./dgemm_test&\n" \
4473         "$ taskset -p 0x1 $!\n" \         "$ taskset -p 0x1 $!\n" \
# Line 3125  Line 4480 
4480         "pid 1's current affinity mask: 3\n"         "pid 1's current affinity mask: 3\n"
4481    
4482  #define tee_trivial_usage \  #define tee_trivial_usage \
4483         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
4484  #define tee_full_usage \  #define tee_full_usage "\n\n" \
4485         "Copy standard input to each FILE, and also to standard output" \         "Copy stdin to each FILE, and also to stdout\n" \
4486         "\n\nOptions:\n" \       "\nOptions:" \
4487         " -a Append to the given FILEs, do not overwrite\n" \       "\n -a Append to the given FILEs, don't overwrite" \
4488         " -i Ignore interrupt signals (SIGINT)"       "\n -i Ignore interrupt signals (SIGINT)" \
4489    
4490  #define tee_example_usage \  #define tee_example_usage \
4491         "$ echo \"Hello\" | tee /tmp/foo\n" \         "$ echo \"Hello\" | tee /tmp/foo\n" \
4492         "$ cat /tmp/foo\n" \         "$ cat /tmp/foo\n" \
4493         "Hello\n"         "Hello\n"
4494    
4495  #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN  #if ENABLE_FEATURE_TELNET_AUTOLOGIN
4496  #define telnet_trivial_usage \  #define telnet_trivial_usage \
4497         "[-a] [-l USER] HOST [PORT]"         "[-a] [-l USER] HOST [PORT]"
4498  #define telnet_full_usage \  #define telnet_full_usage "\n\n" \
4499         "Connect to remote telnet server" \         "Connect to telnet server\n" \
4500         "\n\nOptions:\n" \       "\nOptions:" \
4501         " -a Attempt an automatic login with the USER variable\n" \       "\n -a Automatic login with $USER variable" \
4502         " -l USER Attempt an automatic login with the USER argument\n" \       "\n -l USER Automatic login as USER" \
4503         " HOST The official name, alias or the IP address of the\n" \  
        " remote host\n" \  
        " PORT The remote port number to connect to.  If it is not\n" \  
        " specified, the default telnet (23) port is used."  
4504  #else  #else
4505  #define telnet_trivial_usage \  #define telnet_trivial_usage \
4506         "HOST [PORT]"         "HOST [PORT]"
4507  #define telnet_full_usage \  #define telnet_full_usage "\n\n" \
4508         "Connect to remote telnet server"         "Connect to telnet server"
4509  #endif  #endif
4510    
4511  #define telnetd_trivial_usage \  #define telnetd_trivial_usage \
4512         "[OPTION]"         "[OPTIONS]"
4513  #define telnetd_full_usage \  #define telnetd_full_usage "\n\n" \
4514         "Handle incoming telnet connections" \         "Handle incoming telnet connections" \
4515   SKIP_FEATURE_TELNETD_STANDALONE(" via inetd") \   IF_NOT_FEATURE_TELNETD_STANDALONE(" via inetd") "\n" \
4516         "\n\nOptions:" \       "\nOptions:" \
4517         "\n -l LOGIN Exec LOGIN on connect" \       "\n -l LOGIN Exec LOGIN on connect" \
4518         "\n -f issue_file Display issue_file instead of /etc/issue" \       "\n -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue" \
4519   USE_FEATURE_TELNETD_STANDALONE( \       "\n -K Close connection as soon as login exits" \
4520         "\n -p PORT Port to listen to" \       "\n (normally wait until all programs close slave pty)" \
4521         "\n -b ADDR Address to bind to" \   IF_FEATURE_TELNETD_STANDALONE( \
4522         "\n -F Stay in foreground" \       "\n -p PORT Port to listen on" \
4523         "\n -i Run as inetd subservice" \       "\n -b ADDR[:PORT] Address to bind to" \
4524         "\n -F Run in foreground" \
4525         "\n -i Inetd mode" \
4526     IF_FEATURE_TELNETD_INETD_WAIT( \
4527         "\n -w SEC Inetd 'wait' mode, linger time SEC" \
4528         "\n -S Log to syslog (implied by -i or without -F and -w)" \
4529     ) \
4530   )   )
4531    
4532    /* "test --help" does not print help (POSIX compat), only "[ --help" does.
4533     * We display "<applet> EXPRESSION ]" here (not "<applet> EXPRESSION")
4534     * Unfortunately, it screws up generated BusyBox.html. TODO. */
4535  #define test_trivial_usage \  #define test_trivial_usage \
4536         "EXPRESSION\n  or   [ EXPRESSION ]"         "EXPRESSION ]"
4537  #define test_full_usage \  #define test_full_usage "\n\n" \
4538         "Check file types and compares values returning an exit code\n" \         "Check file types, compare values etc. Return a 0/1 exit code\n" \
4539         "determined by the value of EXPRESSION"         "depending on logical value of EXPRESSION"
4540  #define test_example_usage \  #define test_example_usage \
4541         "$ test 1 -eq 2\n" \         "$ test 1 -eq 2\n" \
4542         "$ echo $?\n" \         "$ echo $?\n" \
# Line 3189  Line 4551 
4551         "$ echo $?\n" \         "$ echo $?\n" \
4552         "1\n"         "1\n"
4553    
4554    #define tc_trivial_usage \
4555     /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]"
4556    #define tc_full_usage "\n\n" \
4557     "OBJECT: {qdisc|class|filter}\n" \
4558     "CMD: {add|del|change|replace|show}\n" \
4559     "\n" \
4560     "qdisc [ handle QHANDLE ] [ root |"IF_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \
4561     /* "[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
4562     " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
4563     " QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \
4564     "qdisc show [ dev STRING ]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n" \
4565     "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \
4566     " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
4567     "class show [ dev STRING ] [ root | parent CLASSID ]\n" \
4568     "filter [ pref PRIO ] [ protocol PROTO ]\n" \
4569     /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
4570     " [ root | classid CLASSID ] [ handle FILTERID ]\n" \
4571     " [ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \
4572     "filter show [ dev STRING ] [ root | parent CLASSID ]"
4573    
4574    #define tcpsvd_trivial_usage \
4575           "[-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG"
4576    /* with not-implemented options: */
4577    /*     "[-hpEvv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] [-i DIR|-x CDB] [-t SEC] IP PORT PROG" */
4578    #define tcpsvd_full_usage "\n\n" \
4579           "Create TCP socket, bind to IP:PORT and listen\n" \
4580           "for incoming connection. Run PROG for each connection.\n" \
4581         "\n IP IP to listen on. '0' = all" \
4582         "\n PORT Port to listen on" \
4583         "\n PROG ARGS Program to run" \
4584         "\n -l NAME Local hostname (else looks up local hostname in DNS)" \
4585         "\n -u USER[:GRP] Change to user/group after bind" \
4586         "\n -c N Handle up to N connections simultaneously" \
4587         "\n -b N Allow a backlog of approximately N TCP SYNs" \
4588         "\n -C N[:MSG] Allow only up to N connections from the same IP" \
4589         "\n New connections from this IP address are closed" \
4590         "\n immediately. MSG is written to the peer before close" \
4591         "\n -h Look up peer's hostname" \
4592         "\n -E Don't set up environment variables" \
4593         "\n -v Verbose" \
4594    
4595    #define udpsvd_trivial_usage \
4596           "[-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG"
4597    #define udpsvd_full_usage "\n\n" \
4598           "Create UDP socket, bind to IP:PORT and wait\n" \
4599           "for incoming packets. Run PROG for each packet,\n" \
4600           "redirecting all further packets with same peer ip:port to it.\n" \
4601         "\n IP IP to listen on. '0' = all" \
4602         "\n PORT Port to listen on" \
4603         "\n PROG ARGS Program to run" \
4604         "\n -l NAME Local hostname (else looks up local hostname in DNS)" \
4605         "\n -u USER[:GRP] Change to user/group after bind" \
4606         "\n -c N Handle up to N connections simultaneously" \
4607         "\n -h Look up peer's hostname" \
4608         "\n -E Don't set up environment variables" \
4609         "\n -v Verbose" \
4610    
4611  #define tftp_trivial_usage \  #define tftp_trivial_usage \
4612         "[OPTION]... HOST [PORT]"         "[OPTIONS] HOST [PORT]"
4613  #define tftp_full_usage \  #define tftp_full_usage "\n\n" \
4614         "Transfer a file from/to tftp server using \"octet\" mode" \         "Transfer a file from/to tftp server\n" \
4615         "\n\nOptions:" \       "\nOptions:" \
4616         "\n -l FILE Local FILE" \       "\n -l FILE Local FILE" \
4617         "\n -r FILE Remote FILE" \       "\n -r FILE Remote FILE" \
4618   USE_FEATURE_TFTP_GET( \   IF_FEATURE_TFTP_GET( \
4619         "\n -g Get file" \       "\n -g Get file" \
4620   ) \   ) \
4621   USE_FEATURE_TFTP_PUT( \   IF_FEATURE_TFTP_PUT( \
4622         "\n -p Put file" \       "\n -p Put file" \
4623   ) \   ) \
4624   USE_FEATURE_TFTP_BLOCKSIZE( \   IF_FEATURE_TFTP_BLOCKSIZE( \
4625         "\n -b SIZE Transfer blocks of SIZE octets" \       "\n -b SIZE Transfer blocks of SIZE octets" \
4626   )   )
4627    
4628    #define tftpd_trivial_usage \
4629           "[-cr] [-u USER] [DIR]"
4630    #define tftpd_full_usage "\n\n" \
4631           "Transfer a file on tftp client's request\n" \
4632           "\n" \
4633           "tftpd should be used as an inetd service.\n" \
4634           "tftpd's line for inetd.conf:\n" \
4635           " 69 dgram udp nowait root tftpd tftpd /files/to/serve\n" \
4636           "It also can be ran from udpsvd:\n" \
4637           " udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n" \
4638         "\nOptions:" \
4639         "\n -r Prohibit upload" \
4640         "\n -c Allow file creation via upload" \
4641         "\n -u Access files as USER" \
4642    
4643  #define time_trivial_usage \  #define time_trivial_usage \
4644         "[OPTION]... COMMAND [ARGS...]"         "[OPTIONS] PROG ARGS"
4645  #define time_full_usage \  #define time_full_usage "\n\n" \
4646         "Run the program COMMAND with arguments ARGS.  When COMMAND finishes,\n" \         "Run PROG, display resource usage when it exits\n" \
4647         "COMMAND's resource usage information is displayed." \       "\nOptions:" \
4648         "\n\nOptions:\n" \       "\n -v Verbose" \
4649         " -v Display verbose resource usage information"  
4650    #define timeout_trivial_usage \
4651           "[-t SECS] [-s SIG] PROG ARGS"
4652    #define timeout_full_usage "\n\n" \
4653           "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" \
4654           "Defaults: SECS: 10, SIG: TERM." \
4655    
4656  #define top_trivial_usage \  #define top_trivial_usage \
4657         "[-b] [-n count] [-d seconds]"         "[-b] [-nCOUNT] [-dSECONDS]" IF_FEATURE_TOPMEM(" [-m]")
4658  #define top_full_usage \  #define top_full_usage "\n\n" \
4659         "Provide a view of process activity in real time.\n" \         "Provide a view of process activity in real time.\n" \
4660         "Read the status of all processes from /proc each <seconds>\n" \         "Read the status of all processes from /proc each SECONDS\n" \
4661         "and show the status for however many processes will fit on the screen."         "and display a screenful of them." \
4662    //TODO: add options and keyboard commands
4663    
4664  #define touch_trivial_usage \  #define touch_trivial_usage \
4665         "[-c] FILE [FILE ...]"         "[-c] [-d DATE] FILE [FILE]..."
4666  #define touch_full_usage \  #define touch_full_usage "\n\n" \
4667         "Update the last-modified date on the given FILE[s]" \         "Update the last-modified date on the given FILE[s]\n" \
4668         "\n\nOptions:\n" \       "\nOptions:" \
4669         " -c Do not create any files"       "\n -c Don't create files" \
4670         "\n -d DT Date/time to use" \
4671    
4672  #define touch_example_usage \  #define touch_example_usage \
4673         "$ ls -l /tmp/foo\n" \         "$ ls -l /tmp/foo\n" \
4674         "/bin/ls: /tmp/foo: No such file or directory\n" \         "/bin/ls: /tmp/foo: No such file or directory\n" \
# Line 3235  Line 4678 
4678    
4679  #define tr_trivial_usage \  #define tr_trivial_usage \
4680         "[-cds] STRING1 [STRING2]"         "[-cds] STRING1 [STRING2]"
4681  #define tr_full_usage \  #define tr_full_usage "\n\n" \
4682         "Translate, squeeze, and/or delete characters from\n" \         "Translate, squeeze, or delete characters from stdin, writing to stdout\n" \
4683         "standard input, writing to standard output" \       "\nOptions:" \
4684         "\n\nOptions:\n" \       "\n -c Take complement of STRING1" \
4685         " -c Take complement of STRING1\n" \       "\n -d Delete input characters coded STRING1" \
4686         " -d Delete input characters coded STRING1\n" \       "\n -s Squeeze multiple output characters of STRING2 into one character" \
4687         " -s Squeeze multiple output characters of STRING2 into one character"  
4688  #define tr_example_usage \  #define tr_example_usage \
4689         "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \         "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
4690         "hello world\n"         "hello world\n"
4691    
4692  #define traceroute_trivial_usage \  #define traceroute_trivial_usage \
4693         "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \         "[-"IF_TRACEROUTE6("46")"FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
4694         " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \         " [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]\n" \
4695         " [-z pausemsecs] host [data size]"         " [-z PAUSE_MSEC] HOST [BYTES]"
4696  #define traceroute_full_usage \  #define traceroute_full_usage "\n\n" \
4697         "Trace the route ip packets follow going to \"host\"" \         "Trace the route to HOST\n" \
4698         "\n\nOptions:\n" \       "\nOptions:" \
4699         " -F Set the don't fragment bit\n" \   IF_TRACEROUTE6( \
4700         " -I Use ICMP ECHO instead of UDP datagrams\n" \       "\n -4, -6 Force IP or IPv6 name resolution" \
4701         " -l Display the ttl value of the returned packet\n" \   ) \
4702         " -d Set SO_DEBUG options to socket\n" \       "\n -F Set the don't fragment bit" \
4703         " -n Print hop addresses numerically rather than symbolically\n" \       "\n -I Use ICMP ECHO instead of UDP datagrams" \
4704         " -r Bypass the normal routing tables and send directly to a host\n" \       "\n -l Display the TTL value of the returned packet" \
4705         " -v Verbose output\n" \       "\n -d Set SO_DEBUG options to socket" \
4706         " -m max_ttl Set the max time-to-live (max number of hops)\n" \       "\n -n Print numeric addresses" \
4707         " -p port# Set the base UDP port number used in probes\n" \       "\n -r Bypass routing tables, send directly to HOST" \
4708         " (default is 33434)\n" \       "\n -v Verbose" \
4709         " -q nqueries Set the number of probes per 'ttl' to nqueries\n" \       "\n -m Max time-to-live (max number of hops)" \
4710         " (default is 3)\n" \       "\n -p Base UDP port number used in probes" \
4711         " -s src_addr Use the following IP address as the source address\n" \       "\n (default 33434)" \
4712         " -t tos Set the type-of-service in probe packets to the following value\n" \       "\n -q Number of probes per TTL (default 3)" \
4713         " (default 0)\n" \       "\n -s IP address to use as the source address" \
4714         " -w wait Set the time (in seconds) to wait for a response to a probe\n" \       "\n -t Type-of-service in probe packets (default 0)" \
4715         " (default 3 sec)\n" \       "\n -w Time in seconds to wait for a response (default 3)" \
4716         " -g Specify a loose source route gateway (8 maximum)"       "\n -g Loose source route gateway (8 max)" \
4717    
4718    #define traceroute6_trivial_usage \
4719           "[-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
4720           " [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE]\n" \
4721           " HOST [BYTES]"
4722    #define traceroute6_full_usage "\n\n" \
4723           "Trace the route to HOST\n" \
4724         "\nOptions:" \
4725         "\n -d Set SO_DEBUG options to socket" \
4726         "\n -n Print numeric addresses" \
4727         "\n -r Bypass routing tables, send directly to HOST" \
4728         "\n -v Verbose" \
4729         "\n -m Max time-to-live (max number of hops)" \
4730         "\n -p Base UDP port number used in probes" \
4731         "\n (default is 33434)" \
4732         "\n -q Number of probes per TTL (default 3)" \
4733         "\n -s IP address to use as the source address" \
4734         "\n -t Type-of-service in probe packets (default 0)" \
4735         "\n -w Time in seconds to wait for a response (default 3)" \
4736    
4737  #define true_trivial_usage \  #define true_trivial_usage \
4738         ""         ""
4739  #define true_full_usage \  #define true_full_usage "\n\n" \
4740         "Return an exit code of TRUE (0)"         "Return an exit code of TRUE (0)"
4741  #define true_example_usage \  #define true_example_usage \
4742         "$ true\n" \         "$ true\n" \
# Line 3284  Line 4745 
4745    
4746  #define tty_trivial_usage \  #define tty_trivial_usage \
4747         ""         ""
4748  #define tty_full_usage \  #define tty_full_usage "\n\n" \
4749         "Print the file name of the terminal connected to standard input" \         "Print file name of stdin's terminal" \
4750         "\n\nOptions:\n" \   IF_INCLUDE_SUSv2( "\n" \
4751         " -s Print nothing, only return an exit status"       "\nOptions:" \
4752         "\n -s Print nothing, only return exit status" \
4753     )
4754  #define tty_example_usage \  #define tty_example_usage \
4755         "$ tty\n" \         "$ tty\n" \
4756         "/dev/tty2\n"         "/dev/tty2\n"
4757    
4758    #define ttysize_trivial_usage \
4759           "[w] [h]"
4760    #define ttysize_full_usage "\n\n" \
4761           "Print dimension(s) of stdin's terminal, on error return 80x25"
4762    
4763    #define tunctl_trivial_usage \
4764           "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]")
4765    #define tunctl_full_usage "\n\n" \
4766           "Create or delete tun interfaces\n" \
4767         "\nOptions:" \
4768         "\n -f name tun device (/dev/net/tun)" \
4769         "\n -t name Create iface 'name'" \
4770         "\n -d name Delete iface 'name'" \
4771     IF_FEATURE_TUNCTL_UG( \
4772         "\n -u owner Set iface owner" \
4773         "\n -g group Set iface group" \
4774         "\n -b Brief output" \
4775     )
4776    #define tunctl_example_usage \
4777           "# tunctl\n" \
4778           "# tunctl -d tun0\n"
4779    
4780  #define tune2fs_trivial_usage \  #define tune2fs_trivial_usage \
4781         "[-c max-mounts-count] [-e errors-behavior] [-g group] " \  /*     "[-c max-mounts-count] [-e errors-behavior] [-g group] " */ \
4782         "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " \  /*     "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " */ \
4783         "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " \  /*     "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " */ \
4784         "[-r reserved-blocks-count] [-u user] [-C mount-count] " \  /*     "[-r reserved-blocks-count] [-u user] [-C mount-count] " */ \
4785         "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \         "[-L LABEL] " \
4786         "[-T last-check-time] [-U UUID] device"  /*     "[-M last-mounted-dir] [-O [^]feature[,...]] " */ \
4787  #define tune2fs_full_usage \  /*     "[-T last-check-time] [-U UUID] " */ \
4788           "BLOCKDEV"
4789    #define tune2fs_full_usage "\n\n" \
4790         "Adjust filesystem options on ext[23] filesystems"         "Adjust filesystem options on ext[23] filesystems"
4791    
4792  #define udhcpc_trivial_usage \  #define udhcpc_trivial_usage \
4793         "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]"         "[-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \
4794  #define udhcpc_full_usage \         " [-p pidfile] [-r IP] [-s script] [-O dhcp-option]..." IF_FEATURE_UDHCP_PORT(" [-P N]")
4795         " -V,--vendorclass=CLASSID Set vendor class identifier\n" \  #define udhcpc_full_usage "\n\n" \
4796         " -i,--interface=INTERFACE Interface to use (default: eth0)\n" \   IF_LONG_OPTS( \
4797         " -H,-h,--hostname=HOSTNAME Client hostname\n" \         " -V,--vendorclass=CLASSID Vendor class identifier" \
4798         " -c,--clientid=CLIENTID Set client identifier\n" \       "\n -i,--interface=INTERFACE Interface to use (default eth0)" \
4799         " -C,--clientid-none Suppress default client identifier\n" \       "\n -H,-h,--hostname=HOSTNAME Client hostname" \
4800         " -p,--pidfile=file Store process ID of daemon in file\n" \       "\n -c,--clientid=CLIENTID Client identifier" \
4801         " -r,--request=IP IP address to request (default: none)\n" \       "\n -C,--clientid-none Suppress default client identifier" \
4802         " -s,--script=file Run file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \       "\n -p,--pidfile=FILE Create pidfile" \
4803         " -t,--retries=NUM Send up to NUM request packets\n"\       "\n -r,--request=IP IP address to request" \
4804         " -f,--foreground Do not fork after getting lease\n" \       "\n -s,--script=FILE Run FILE at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4805         " -b,--background Fork to background if lease cannot be immediately negotiated\n" \       "\n -t,--retries=N Send up to N discover packets" \
4806         " -n,--now Exit with failure if lease cannot be immediately negotiated\n" \       "\n -T,--timeout=N Pause between packets (default 3 seconds)" \
4807         " -q,--quit Quit after obtaining lease\n" \       "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \
4808         " -R,--release Release IP on quit\n" \       "\n -O,--request-option=OPT Request DHCP option OPT (cumulative)" \
4809         " -v,--version Display version" \       "\n -o,--no-default-options Don't request any options (unless -O is also given)" \
4810         "\n -f,--foreground Run in foreground" \
4811     USE_FOR_MMU( \
4812         "\n -b,--background Background if lease is not immediately obtained" \
4813     ) \
4814         "\n -S,--syslog Log to syslog too" \
4815         "\n -n,--now Exit with failure if lease is not immediately obtained" \
4816         "\n -q,--quit Quit after obtaining lease" \
4817         "\n -R,--release Release IP on quit" \
4818     IF_FEATURE_UDHCP_PORT( \
4819         "\n -P,--client-port N  Use port N instead of default 68" \
4820     ) \
4821     IF_FEATURE_UDHCPC_ARPING( \
4822         "\n -a,--arping Use arping to validate offered address" \
4823     ) \
4824     ) \
4825     IF_NOT_LONG_OPTS( \
4826           " -V CLASSID Vendor class identifier" \
4827         "\n -i INTERFACE Interface to use (default: eth0)" \
4828         "\n -H,-h HOSTNAME Client hostname" \
4829         "\n -c CLIENTID Client identifier" \
4830         "\n -C Suppress default client identifier" \
4831         "\n -p FILE Create pidfile" \
4832         "\n -r IP IP address to request" \
4833         "\n -s FILE Run FILE at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
4834         "\n -t N Send up to N request packets" \
4835         "\n -T N Try to get a lease for N seconds (default 3)" \
4836         "\n -A N Wait N seconds (default 20) after failure" \
4837         "\n -O OPT Request DHCP option OPT (cumulative)" \
4838         "\n -o Don't request any options (unless -O is also given)" \
4839         "\n -f Run in foreground" \
4840     USE_FOR_MMU( \
4841         "\n -b Background if lease is not immediately obtained" \
4842     ) \
4843         "\n -S Log to syslog too" \
4844         "\n -n Exit with failure if lease is not immediately obtained" \
4845         "\n -q Quit after obtaining lease" \
4846         "\n -R Release IP on quit" \
4847     IF_FEATURE_UDHCP_PORT( \
4848         "\n -P N Use port N instead of default 68" \
4849     ) \
4850     IF_FEATURE_UDHCPC_ARPING( \
4851         "\n -a Use arping to validate offered address" \
4852     ) \
4853     )
4854    
4855  #define udhcpd_trivial_usage \  #define udhcpd_trivial_usage \
4856         "[configfile]\n" \         "[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [configfile]" \
4857    
4858  #define udhcpd_full_usage \  #define udhcpd_full_usage "\n\n" \
4859         ""         "DHCP server\n" \
4860         "\n -f Run in foreground" \
4861         "\n -S Log to syslog too" \
4862     IF_FEATURE_UDHCP_PORT( \
4863         "\n -P N Use port N instead of default 67" \
4864     )
4865    
4866  #define umount_trivial_usage \  #define umount_trivial_usage \
4867         "[flags] FILESYSTEM|DIRECTORY"         "[OPTIONS] FILESYSTEM|DIRECTORY"
4868  #define umount_full_usage \  #define umount_full_usage "\n\n" \
4869         "Unmount file systems" \         "Unmount file systems\n" \
4870         "\n\nOptions:\n" \       "\nOptions:" \
4871         "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \   IF_FEATURE_UMOUNT_ALL( \
4872   USE_FEATURE_MTAB_SUPPORT( \       "\n -a Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \
4873         "\n -n Don't erase /etc/mtab entries") \   ) \
4874         "\n -r Try to remount devices as read-only if mount is busy" \   IF_FEATURE_MTAB_SUPPORT( \
4875         "\n -l Lazy umount (detach filesystem)" \       "\n -n Don't erase /etc/mtab entries" \
4876         "\n -f Force umount (i.e., unreachable NFS server)" \   ) \
4877   USE_FEATURE_MOUNT_LOOP( \       "\n -r Try to remount devices as read-only if mount is busy" \
4878         "\n -D Do not free loop device (if a loop device has been used)")       "\n -l Lazy umount (detach filesystem)" \
4879         "\n -f Force umount (i.e., unreachable NFS server)" \
4880     IF_FEATURE_MOUNT_LOOP( \
4881         "\n -d Free loop device if it has been used" \
4882     )
4883    
4884  #define umount_example_usage \  #define umount_example_usage \
4885         "$ umount /dev/hdc1\n"         "$ umount /dev/hdc1\n"
4886    
4887  #define uname_trivial_usage \  #define uname_trivial_usage \
4888         "[OPTION]..."         "[-amnrspv]"
4889  #define uname_full_usage \  #define uname_full_usage "\n\n" \
4890         "Print certain system information.  With no OPTION, same as -s." \         "Print system information\n" \
4891         "\n\nOptions:\n" \       "\nOptions:" \
4892         " -a Print all information\n" \       "\n -a Print all" \
4893         " -m The machine (hardware) type\n" \       "\n -m The machine (hardware) type" \
4894         " -n Print the machine's network node hostname\n" \       "\n -n Hostname" \
4895         " -r Print the operating system release\n" \       "\n -r OS release" \
4896         " -s Print the operating system name\n" \       "\n -s OS name (default)" \
4897         " -p Print the host processor type\n" \       "\n -p Processor type" \
4898         " -v Print the operating system version"       "\n -v OS version" \
4899    
4900  #define uname_example_usage \  #define uname_example_usage \
4901         "$ uname -a\n" \         "$ uname -a\n" \
4902         "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"         "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
4903    
4904  #define uncompress_trivial_usage \  #define uncompress_trivial_usage \
4905         "[-c] [-f] [ name ... ]"         "[-c] [-f] [FILE]..."
4906  #define uncompress_full_usage \  #define uncompress_full_usage "\n\n" \
4907         "Uncompress .Z file[s]" \         "Uncompress .Z file[s]\n" \
4908         "\n\nOptions:\n" \       "\nOptions:" \
4909         " -c Extract to stdout\n" \       "\n -c Extract to stdout" \
4910         " -f Force overwrite an existing file"       "\n -f Overwrite an existing file" \
4911    
4912    #define unexpand_trivial_usage \
4913           "[-f][-a][-t N] [FILE|-]"
4914    #define unexpand_full_usage "\n\n" \
4915           "Convert spaces to tabs, writing to stdout\n" \
4916         "\nOptions:" \
4917     IF_FEATURE_UNEXPAND_LONG_OPTIONS( \
4918         "\n -a,--all Convert all blanks" \
4919         "\n -f,--first-only Convert only leading blanks" \
4920         "\n -t,--tabs=N Tabstops every N chars" \
4921     ) \
4922     IF_NOT_FEATURE_UNEXPAND_LONG_OPTIONS( \
4923         "\n -a Convert all blanks" \
4924         "\n -f Convert only leading blanks" \
4925         "\n -t N Tabstops every N chars" \
4926     )
4927    
4928  #define uniq_trivial_usage \  #define uniq_trivial_usage \
4929         "[-fscdu]... [INPUT [OUTPUT]]"         "[-fscduw]... [INPUT [OUTPUT]]"
4930  #define uniq_full_usage \  #define uniq_full_usage "\n\n" \
4931         "Discard all but one of successive identical lines from INPUT\n" \         "Discard duplicate lines\n" \
4932         "(or standard input), writing to OUTPUT (or standard output)" \       "\nOptions:" \
4933         "\n\nOptions:\n" \       "\n -c Prefix lines by the number of occurrences" \
4934         " -c Prefix lines by the number of occurrences\n" \       "\n -d Only print duplicate lines" \
4935         " -d Only print duplicate lines\n" \       "\n -u Only print unique lines" \
4936         " -u Only print unique lines\n" \       "\n -f N Skip first N fields" \
4937         " -f N Skip the first N fields\n" \       "\n -s N Skip first N chars (after any skipped fields)" \
4938         " -s N Skip the first N chars (after any skipped fields)"       "\n -w N Compare N characters in line" \
4939    
4940  #define uniq_example_usage \  #define uniq_example_usage \
4941         "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \         "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
4942         "a\n" \         "a\n" \
4943         "b\n" \         "b\n" \
4944         "c\n"         "c\n"
4945    
 #define unix2dos_trivial_usage \  
        "[option] [FILE]"  
 #define unix2dos_full_usage \  
        "Convert FILE from unix format to dos format.  When no option\n" \  
        "is given, the input is converted to the opposite output format.\n" \  
        "When no file is given, use stdin for input and stdout for output." \  
        "\n\nOptions:\n" \  
        " -u Output will be in UNIX format\n" \  
        " -d Output will be in DOS format"  
   
4946  #define unzip_trivial_usage \  #define unzip_trivial_usage \
4947         "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"         "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"
4948  #define unzip_full_usage \  #define unzip_full_usage "\n\n" \
4949         "Extract files from ZIP archives" \         "Extract files from ZIP archives\n" \
4950         "\n\nOptions:\n" \       "\nOptions:" \
4951         " -l List archive contents (short form)\n" \       "\n -l List archive contents (with -q for short form)" \
4952         " -n Never overwrite existing files (default)\n" \       "\n -n Never overwrite existing files (default)" \
4953         " -o Overwrite files without prompting\n" \       "\n -o Overwrite files without prompting" \
4954         " -p Send output to stdout\n" \       "\n -p Send output to stdout" \
4955         " -q Be quiet\n" \       "\n -q Quiet" \
4956         " -x Exclude these files\n" \       "\n -x Exclude these files" \
4957         " -d Extract files into this directory"       "\n -d Extract files into this directory" \
4958    
4959  #define uptime_trivial_usage \  #define uptime_trivial_usage \
4960         ""         ""
4961  #define uptime_full_usage \  #define uptime_full_usage "\n\n" \
4962         "Display the time since the last boot"         "Display the time since the last boot"
4963    
4964  #define uptime_example_usage \  #define uptime_example_usage \
4965         "$ uptime\n" \         "$ uptime\n" \
4966         "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"         "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"
4967    
4968  #define usleep_trivial_usage \  #define usleep_trivial_usage \
4969         "N"         "N"
4970  #define usleep_full_usage \  #define usleep_full_usage "\n\n" \
4971         "Pause for N microseconds"         "Pause for N microseconds"
4972    
4973  #define usleep_example_usage \  #define usleep_example_usage \
4974         "$ usleep 1000000\n" \         "$ usleep 1000000\n" \
4975         "[pauses for 1 second]\n"         "[pauses for 1 second]\n"
4976    
4977  #define uudecode_trivial_usage \  #define uudecode_trivial_usage \
4978         "[FILE]..."         "[-o OUTFILE] [INFILE]"
4979  #define uudecode_full_usage \  #define uudecode_full_usage "\n\n" \
4980         "Uudecode a file" \         "Uudecode a file\n" \
4981         "\n\nOptions:\n" \         "Finds outfile name in uuencoded source unless -o is given"
4982         " -o FILE Direct output to FILE"  
4983  #define uudecode_example_usage \  #define uudecode_example_usage \
4984         "$ uudecode -o busybox busybox.uu\n" \         "$ uudecode -o busybox busybox.uu\n" \
4985         "$ ls -l busybox\n" \         "$ ls -l busybox\n" \
4986         "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"         "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"
4987    
4988  #define uuencode_trivial_usage \  #define uuencode_trivial_usage \
4989         "[OPTION] [INFILE] REMOTEFILE"         "[-m] [INFILE] STORED_FILENAME"
4990  #define uuencode_full_usage \  #define uuencode_full_usage "\n\n" \
4991         "Uuencode a file" \         "Uuencode a file to stdout\n" \
4992         "\n\nOptions:\n" \       "\nOptions:" \
4993         " -m Use base64 encoding per RFC1521"       "\n -m Use base64 encoding per RFC1521" \
4994    
4995  #define uuencode_example_usage \  #define uuencode_example_usage \
4996         "$ uuencode busybox busybox\n" \         "$ uuencode busybox busybox\n" \
4997         "begin 755 busybox\n" \         "begin 755 busybox\n" \
# Line 3448  Line 5000 
5000         "$\n"         "$\n"
5001    
5002  #define vconfig_trivial_usage \  #define vconfig_trivial_usage \
5003         "COMMAND [OPTIONS] ..."         "COMMAND [OPTIONS]"
5004  #define vconfig_full_usage \  #define vconfig_full_usage "\n\n" \
5005         "Create and remove virtual ethernet devices" \         "Create and remove virtual ethernet devices\n" \
5006         "\n\nOptions:\n" \       "\nOptions:" \
5007         " add             [interface-name] [vlan_id]\n" \       "\n add [interface-name] [vlan_id]" \
5008         " rem             [vlan-name]\n" \       "\n rem [vlan-name]" \
5009         " set_flag        [interface-name] [flag-num]       [0 | 1]\n" \       "\n set_flag [interface-name] [flag-num] [0 | 1]" \
5010         " set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]\n" \       "\n set_egress_map [vlan-name] [skb_priority] [vlan_qos]" \
5011         " set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]\n" \       "\n set_ingress_map [vlan-name] [skb_priority] [vlan_qos]" \
5012         " set_name_type   [name-type]"       "\n set_name_type [name-type]" \
5013    
5014  #define vi_trivial_usage \  #define vi_trivial_usage \
5015         "[OPTION] [FILE]..."         "[OPTIONS] [FILE]..."
5016  #define vi_full_usage \  #define vi_full_usage "\n\n" \
5017         "Edit FILE" \         "Edit FILE\n" \
5018         "\n\nOptions:\n" \       "\nOptions:" \
5019         " -R Read-only - do not write to the file"   IF_FEATURE_VI_COLON( \
5020         "\n -c Initial command to run ($EXINIT also available)") \
5021     IF_FEATURE_VI_READONLY( \
5022         "\n -R Read-only") \
5023         "\n -H Short help regarding available features" \
5024    
5025  #define vlock_trivial_usage \  #define vlock_trivial_usage \
5026         "[OPTIONS]"         "[OPTIONS]"
5027  #define vlock_full_usage \  #define vlock_full_usage "\n\n" \
5028         "Lock a virtual terminal.  A password is required to unlock." \         "Lock a virtual terminal. A password is required to unlock.\n" \
5029         "\n\nOptions:\n" \       "\nOptions:" \
5030         " -a Lock all VTs"       "\n -a Lock all VTs" \
5031    
5032    #define volname_trivial_usage \
5033           "[DEVICE]"
5034    #define volname_full_usage "\n\n" \
5035           "Show CD volume name of the DEVICE (default /dev/cdrom)"
5036    
5037    #define wall_trivial_usage \
5038     "[FILE]"
5039    #define wall_full_usage "\n\n" \
5040     "Write content of FILE or stdin to all logged-in users"
5041    #define wall_sample_usage \
5042     "echo foo | wall\n" \
5043     "wall ./mymessage"
5044    
5045  #define watch_trivial_usage \  #define watch_trivial_usage \
5046         "[-n <seconds>] [-t] COMMAND..."         "[-n SEC] [-t] PROG ARGS"
5047  #define watch_full_usage \  #define watch_full_usage "\n\n" \
5048         "Execute a program periodically" \         "Run PROG periodically\n" \
5049         "\n\nOptions:\n" \       "\nOptions:" \
5050         " -n Loop period in seconds - default is 2\n" \       "\n -n Loop period in seconds (default 2)" \
5051         " -t Don't print header"       "\n -t Don't print header" \
5052    
5053  #define watch_example_usage \  #define watch_example_usage \
5054         "$ watch date\n" \         "$ watch date\n" \
5055         "Mon Dec 17 10:31:40 GMT 2000\n" \         "Mon Dec 17 10:31:40 GMT 2000\n" \
# Line 3487  Line 5057 
5057         "Mon Dec 17 10:31:44 GMT 2000"         "Mon Dec 17 10:31:44 GMT 2000"
5058    
5059  #define watchdog_trivial_usage \  #define watchdog_trivial_usage \
5060         "[-t <seconds>] [-F] DEV"         "[-t N[ms]] [-T N[ms]] [-F] DEV"
5061  #define watchdog_full_usage \  #define watchdog_full_usage "\n\n" \
5062         "Periodically write to watchdog device DEV" \         "Periodically write to watchdog device DEV\n" \
5063         "\n\nOptions:\n" \       "\nOptions:" \
5064         " -t Timer period in seconds - default is 30\n" \       "\n -T N Reboot after N seconds if not reset (default 60)" \
5065         " -F Stay in the foreground and don't fork"       "\n -t N Reset every N seconds (default 30)" \
5066         "\n -F Run in foreground" \
5067         "\n" \
5068         "\nUse 500ms to specify period in milliseconds" \
5069    
5070  #define wc_trivial_usage \  #define wc_trivial_usage \
5071         "[OPTION]... [FILE]..."         "[OPTIONS] [FILE]..."
5072  #define wc_full_usage \  #define wc_full_usage "\n\n" \
5073         "Print line, word, and byte counts for each FILE, and a total line if\n" \         "Print line, word, and byte counts for each FILE (or stdin),\n" \
5074         "more than one FILE is specified.  With no FILE, read standard input." \         "and a total line if more than one FILE is specified\n" \
5075         "\n\nOptions:\n" \       "\nOptions:" \
5076         " -c Print the byte counts\n" \       "\n -c Print the byte counts" \
5077         " -l Print the newline counts\n" \       "\n -l Print the newline counts" \
5078         " -L Print the length of the longest line\n" \       "\n -L Print the length of the longest line" \
5079         " -w Print the word counts"       "\n -w Print the word counts" \
5080    
5081  #define wc_example_usage \  #define wc_example_usage \
5082         "$ wc /etc/passwd\n" \         "$ wc /etc/passwd\n" \
5083         "     31      46    1365 /etc/passwd\n"         "     31      46    1365 /etc/passwd\n"
5084    
5085  #define wget_trivial_usage \  #define wget_trivial_usage \
5086         "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \   IF_FEATURE_WGET_LONG_OPTIONS( \
5087         " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \         "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \
5088         " [-U|--user-agent agent] url"         " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
5089  #define wget_full_usage \         " [--no-check-certificate] [-U|--user-agent agent] url" \
5090         "Retrieve files via HTTP or FTP" \   ) \
5091         "\n\nOptions:\n" \   IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
5092         " -c Continue retrieval of aborted transfers\n" \         "[-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url" \
5093         " -q Quiet mode - do not print\n" \   )
5094         " -P Set directory prefix to DIR\n" \  #define wget_full_usage "\n\n" \
5095         " -O Save to filename ('-' for stdout)\n" \         "Retrieve files via HTTP or FTP\n" \
5096         " -U Adjust 'User-Agent' field\n" \       "\nOptions:" \
5097         " -Y Use proxy ('on' or 'off')"       "\n -s Spider mode - only check file existence" \
5098         "\n -c Continue retrieval of aborted transfer" \
5099         "\n -q Quiet" \
5100         "\n -P Set directory prefix to DIR" \
5101         "\n -O Save to filename ('-' for stdout)" \
5102         "\n -U Adjust 'User-Agent' field" \
5103         "\n -Y Use proxy ('on' or 'off')" \
5104    
5105  #define which_trivial_usage \  #define which_trivial_usage \
5106         "[COMMAND ...]"         "[COMMAND]..."
5107  #define which_full_usage \  #define which_full_usage "\n\n" \
5108         "Locate a COMMAND"         "Locate a COMMAND"
5109  #define which_example_usage \  #define which_example_usage \
5110         "$ which login\n" \         "$ which login\n" \
5111         "/bin/login\n"         "/bin/login\n"
5112    
5113  #define who_trivial_usage \  #define who_trivial_usage \
5114         " "         "[-a]"
5115  #define who_full_usage \  #define who_full_usage "\n\n" \
5116         "Print the current user names and related information"         "Show who is logged on\n" \
5117         "\nOptions:" \
5118         "\n -a show all" \
5119    
5120  #define whoami_trivial_usage \  #define whoami_trivial_usage \
5121         ""         ""
5122  #define whoami_full_usage \  #define whoami_full_usage "\n\n" \
5123         "Print the user name associated with the current effective user id"         "Print the user name associated with the current effective user id"
5124    
5125  #define xargs_trivial_usage \  #define xargs_trivial_usage \
5126         "[OPTIONS] [COMMAND] [ARGS...]"         "[OPTIONS] [PROG ARGS]"
5127  #define xargs_full_usage \  #define xargs_full_usage "\n\n" \
5128         "Execute COMMAND on every item given by standard input" \         "Run PROG on every item given by stdin\n" \
5129         "\n\nOptions:\n" \       "\nOptions:" \
5130   USE_FEATURE_XARGS_SUPPORT_CONFIRMATION( \   IF_FEATURE_XARGS_SUPPORT_CONFIRMATION( \
5131         " -p Prompt the user about whether to run each command\n") \       "\n -p Ask user whether to run each command") \
5132         " -r Do not run command for empty read lines\n" \       "\n -r Don't run command if input is empty" \
5133   USE_FEATURE_XARGS_SUPPORT_TERMOPT( \   IF_FEATURE_XARGS_SUPPORT_ZERO_TERM( \
5134         " -x Exit if the size is exceeded\n") \       "\n -0 Input is separated by NUL characters") \
5135   USE_FEATURE_XARGS_SUPPORT_ZERO_TERM( \       "\n -t Print the command on stderr before execution" \
5136         " -0 Input filenames are terminated by a null character\n") \       "\n -e[STR] STR stops input processing" \
5137         " -t Print the command line on stderr before executing it"       "\n -n N Pass no more than N args to PROG" \
5138         "\n -s N Pass command line of no more than N bytes" \
5139     IF_FEATURE_XARGS_SUPPORT_TERMOPT( \
5140         "\n -x Exit if size is exceeded") \
5141    
5142  #define xargs_example_usage \  #define xargs_example_usage \
5143         "$ ls | xargs gzip\n" \         "$ ls | xargs gzip\n" \
5144         "$ find . -name '*.c' -print | xargs rm\n"         "$ find . -name '*.c' -print | xargs rm\n"
5145    
5146  #define yes_trivial_usage \  #define yes_trivial_usage \
5147         "[OPTION]... [STRING]..."         "[OPTIONS] [STRING]"
5148  #define yes_full_usage \  #define yes_full_usage "\n\n" \
5149         "Repeatedly output a line with all specified STRING(s), or 'y'"         "Repeatedly output a line with STRING, or 'y'"
5150    
5151  #define zcat_trivial_usage \  #define zcat_trivial_usage \
5152         "FILE"         "FILE"
5153  #define zcat_full_usage \  #define zcat_full_usage "\n\n" \
5154         "Uncompress to stdout"         "Uncompress to stdout"
5155    
5156  #define zcip_trivial_usage \  #define zcip_trivial_usage \
5157         "[OPTIONS] ifname script"         "[OPTIONS] IFACE SCRIPT"
5158  #define zcip_full_usage \  #define zcip_full_usage "\n\n" \
5159         "Manage a ZeroConf IPv4 link-local address" \         "Manage a ZeroConf IPv4 link-local address\n" \
5160         "\n\nOptions:\n" \       "\nOptions:" \
5161         " -f              foreground mode\n" \       "\n -f Run in foreground" \
5162         " -q              quit after address (no daemon)\n" \       "\n -q Quit after obtaining address" \
5163         " -r 169.254.x.x  request this address first\n" \       "\n -r 169.254.x.x Request this address first" \
5164         " -v              verbose"       "\n -v Verbose" \
5165         "\n" \
5166         "\nWith no -q, runs continuously monitoring for ARP conflicts," \
5167         "\nexits only on I/O errors (link down etc)" \
5168    
5169  #endif /* __BB_USAGE_H__ */  
5170    #endif

Legend:
Removed from v.532  
changed lines
  Added in v.984