diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 77 |
1 files changed, 52 insertions, 25 deletions
diff --git a/include/usage.h b/include/usage.h index 4568fac9f..3fce939bb 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -154,18 +154,15 @@ | |||
154 | "\n -r Repetitions" \ | 154 | "\n -r Repetitions" \ |
155 | "\n -n Start new tone" \ | 155 | "\n -n Start new tone" \ |
156 | 156 | ||
157 | #define fbsplash_trivial_usage \ | 157 | #define bootchartd_trivial_usage \ |
158 | "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" | 158 | "start [PROG ARGS]|stop|init" |
159 | #define fbsplash_full_usage "\n\n" \ | 159 | #define bootchartd_full_usage "\n\n" \ |
160 | "Options:" \ | 160 | "Create /var/log/bootchart.tgz with boot chart data\n" \ |
161 | "\n -s Image" \ | 161 | "\nOptions:" \ |
162 | "\n -c Hide cursor" \ | 162 | "\nstart: start background logging; with PROG, run PROG, then kill logging with USR1" \ |
163 | "\n -d Framebuffer device (default /dev/fb0)" \ | 163 | "\nstop: send USR1 to all bootchartd processes" \ |
164 | "\n -i Config file (var=value):" \ | 164 | "\ninit: start background logging; stop when getty/xdm is seen (for init scripts)" \ |
165 | "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ | 165 | "\nUnder PID 1: as init, then exec $bootchart_init, /init, /sbin/init" \ |
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 | 166 | ||
170 | #define brctl_trivial_usage \ | 167 | #define brctl_trivial_usage \ |
171 | "COMMAND [BRIDGE [INTERFACE]]" | 168 | "COMMAND [BRIDGE [INTERFACE]]" |
@@ -504,9 +501,9 @@ | |||
504 | "Clear screen" | 501 | "Clear screen" |
505 | 502 | ||
506 | #define cmp_trivial_usage \ | 503 | #define cmp_trivial_usage \ |
507 | "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]") "]]" | 504 | "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
508 | #define cmp_full_usage "\n\n" \ | 505 | #define cmp_full_usage "\n\n" \ |
509 | "Compares FILE1 vs stdin if FILE2 is not specified\n" \ | 506 | "Compare FILE1 with FILE2 (or stdin)\n" \ |
510 | "\nOptions:" \ | 507 | "\nOptions:" \ |
511 | "\n -l Write the byte numbers (decimal) and values (octal)" \ | 508 | "\n -l Write the byte numbers (decimal) and values (octal)" \ |
512 | "\n for all differing bytes" \ | 509 | "\n for all differing bytes" \ |
@@ -515,7 +512,7 @@ | |||
515 | #define comm_trivial_usage \ | 512 | #define comm_trivial_usage \ |
516 | "[-123] FILE1 FILE2" | 513 | "[-123] FILE1 FILE2" |
517 | #define comm_full_usage "\n\n" \ | 514 | #define comm_full_usage "\n\n" \ |
518 | "Compare FILE1 to FILE2, or to stdin if - is specified\n" \ | 515 | "Compare FILE1 with FILE2\n" \ |
519 | "\nOptions:" \ | 516 | "\nOptions:" \ |
520 | "\n -1 Suppress lines unique to FILE1" \ | 517 | "\n -1 Suppress lines unique to FILE1" \ |
521 | "\n -2 Suppress lines unique to FILE2" \ | 518 | "\n -2 Suppress lines unique to FILE2" \ |
@@ -652,8 +649,16 @@ | |||
652 | "\n -S SALT" \ | 649 | "\n -S SALT" \ |
653 | ) \ | 650 | ) \ |
654 | 651 | ||
655 | #define cttyhack_trivial_usage NOUSAGE_STR | 652 | #define cttyhack_trivial_usage \ |
656 | #define cttyhack_full_usage "" | 653 | "PROG ARGS" |
654 | #define cttyhack_full_usage "\n\n" \ | ||
655 | "Give PROG a controlling tty if possible." \ | ||
656 | "\nExample for /etc/inittab (for busybox init):" \ | ||
657 | "\n ::respawn:/bin/cttyhack /bin/sh" \ | ||
658 | "\nGiving controlling tty to shell running with PID 1:" \ | ||
659 | "\n $ exec cttyhack sh" \ | ||
660 | "\nStarting interactive shell from boot shell script:" \ | ||
661 | "\n setsid cttyhack sh" \ | ||
657 | 662 | ||
658 | #define cut_trivial_usage \ | 663 | #define cut_trivial_usage \ |
659 | "[OPTIONS] [FILE]..." | 664 | "[OPTIONS] [FILE]..." |
@@ -1174,6 +1179,19 @@ | |||
1174 | "$ echo $?\n" \ | 1179 | "$ echo $?\n" \ |
1175 | "1\n" | 1180 | "1\n" |
1176 | 1181 | ||
1182 | #define fbsplash_trivial_usage \ | ||
1183 | "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" | ||
1184 | #define fbsplash_full_usage "\n\n" \ | ||
1185 | "Options:" \ | ||
1186 | "\n -s Image" \ | ||
1187 | "\n -c Hide cursor" \ | ||
1188 | "\n -d Framebuffer device (default /dev/fb0)" \ | ||
1189 | "\n -i Config file (var=value):" \ | ||
1190 | "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ | ||
1191 | "\n BAR_R,BAR_G,BAR_B" \ | ||
1192 | "\n -f Control pipe (else exit after drawing image)" \ | ||
1193 | "\n commands: 'NN' (% for progress bar) or 'exit'" \ | ||
1194 | |||
1177 | #define fbset_trivial_usage \ | 1195 | #define fbset_trivial_usage \ |
1178 | "[OPTIONS] [MODE]" | 1196 | "[OPTIONS] [MODE]" |
1179 | #define fbset_full_usage "\n\n" \ | 1197 | #define fbset_full_usage "\n\n" \ |
@@ -1531,8 +1549,7 @@ | |||
1531 | "\n -H HOST Log HOST into the utmp file as the hostname" \ | 1549 | "\n -H HOST Log HOST into the utmp file as the hostname" \ |
1532 | 1550 | ||
1533 | #define grep_trivial_usage \ | 1551 | #define grep_trivial_usage \ |
1534 | "[-HhnlLoqvsri" \ | 1552 | "[-HhnlLoqvsriw" \ |
1535 | IF_DESKTOP("w") \ | ||
1536 | "F" \ | 1553 | "F" \ |
1537 | IF_FEATURE_GREP_EGREP_ALIAS("E") \ | 1554 | IF_FEATURE_GREP_EGREP_ALIAS("E") \ |
1538 | IF_EXTRA_COMPAT("z") \ | 1555 | IF_EXTRA_COMPAT("z") \ |
@@ -1554,9 +1571,7 @@ | |||
1554 | "\n -s Suppress open and read errors" \ | 1571 | "\n -s Suppress open and read errors" \ |
1555 | "\n -r Recurse" \ | 1572 | "\n -r Recurse" \ |
1556 | "\n -i Ignore case" \ | 1573 | "\n -i Ignore case" \ |
1557 | IF_DESKTOP( \ | ||
1558 | "\n -w Match whole words only" \ | 1574 | "\n -w Match whole words only" \ |
1559 | ) \ | ||
1560 | "\n -F PATTERN is a literal (not regexp)" \ | 1575 | "\n -F PATTERN is a literal (not regexp)" \ |
1561 | IF_FEATURE_GREP_EGREP_ALIAS( \ | 1576 | IF_FEATURE_GREP_EGREP_ALIAS( \ |
1562 | "\n -E PATTERN is an extended regexp" \ | 1577 | "\n -E PATTERN is an extended regexp" \ |
@@ -3741,6 +3756,18 @@ | |||
3741 | "\n for customizable files, or the user section," \ | 3756 | "\n for customizable files, or the user section," \ |
3742 | "\n if it has changed" \ | 3757 | "\n if it has changed" \ |
3743 | 3758 | ||
3759 | #define rfkill_trivial_usage \ | ||
3760 | "COMMAND [INDEX|TYPE]" | ||
3761 | #define rfkill_full_usage "\n\n" \ | ||
3762 | "Enable/disable wireless devices\n" \ | ||
3763 | "\nCommands:" \ | ||
3764 | "\n list [INDEX|TYPE] List current state" \ | ||
3765 | "\n block INDEX|TYPE Disable device" \ | ||
3766 | "\n unblock INDEX|TYPE Enable device" \ | ||
3767 | "\n" \ | ||
3768 | "\n TYPE: all, wlan(wifi), bluetooth, uwb(ultrawideband)," \ | ||
3769 | "\n wimax, wwan, gps, fm" \ | ||
3770 | |||
3744 | #define rm_trivial_usage \ | 3771 | #define rm_trivial_usage \ |
3745 | "[OPTIONS] FILE..." | 3772 | "[OPTIONS] FILE..." |
3746 | #define rm_full_usage "\n\n" \ | 3773 | #define rm_full_usage "\n\n" \ |
@@ -3791,13 +3818,13 @@ | |||
3791 | "\n -A inet" IF_FEATURE_IPV6("{6}") " Select address family" \ | 3818 | "\n -A inet" IF_FEATURE_IPV6("{6}") " Select address family" \ |
3792 | 3819 | ||
3793 | #define rpm_trivial_usage \ | 3820 | #define rpm_trivial_usage \ |
3794 | "-i -q[ildc]p PACKAGE.rpm" | 3821 | "-i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm" |
3795 | #define rpm_full_usage "\n\n" \ | 3822 | #define rpm_full_usage "\n\n" \ |
3796 | "Manipulate RPM packages\n" \ | 3823 | "Manipulate RPM packages\n" \ |
3797 | "\nOptions:" \ | 3824 | "\nCommands:" \ |
3798 | "\n -i Install package" \ | 3825 | "\n -i Install package" \ |
3799 | "\n -q Query package" \ | 3826 | "\n -qp Query package" \ |
3800 | "\n -p Query uninstalled package" \ | 3827 | "\nOptions:" \ |
3801 | "\n -i Show information" \ | 3828 | "\n -i Show information" \ |
3802 | "\n -l List contents" \ | 3829 | "\n -l List contents" \ |
3803 | "\n -d List documents" \ | 3830 | "\n -d List documents" \ |