diff options
-rw-r--r-- | console-tools/chvt.c | 6 | ||||
-rw-r--r-- | console-tools/clear.c | 6 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 5 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 8 | ||||
-rw-r--r-- | console-tools/fgconsole.c | 5 | ||||
-rw-r--r-- | console-tools/kbd_mode.c | 12 | ||||
-rw-r--r-- | console-tools/loadfont.c | 10 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 10 | ||||
-rw-r--r-- | console-tools/openvt.c | 13 | ||||
-rw-r--r-- | console-tools/reset.c | 5 | ||||
-rw-r--r-- | console-tools/resize.c | 6 | ||||
-rw-r--r-- | console-tools/setconsole.c | 7 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 12 | ||||
-rw-r--r-- | console-tools/setlogcons.c | 5 | ||||
-rw-r--r-- | console-tools/showkey.c | 9 | ||||
-rw-r--r-- | include/usage.src.h | 111 |
16 files changed, 119 insertions, 111 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 07e58c3b8..b9c974f4a 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -6,6 +6,12 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //usage:#define chvt_trivial_usage | ||
11 | //usage: "N" | ||
12 | //usage:#define chvt_full_usage "\n\n" | ||
13 | //usage: "Change the foreground virtual terminal to /dev/ttyN" | ||
14 | |||
9 | #include "libbb.h" | 15 | #include "libbb.h" |
10 | 16 | ||
11 | int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 17 | int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
diff --git a/console-tools/clear.c b/console-tools/clear.c index dcb9bfb02..ac22b787e 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c | |||
@@ -6,6 +6,12 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //usage:#define clear_trivial_usage | ||
11 | //usage: "" | ||
12 | //usage:#define clear_full_usage "\n\n" | ||
13 | //usage: "Clear screen" | ||
14 | |||
9 | #include "libbb.h" | 15 | #include "libbb.h" |
10 | 16 | ||
11 | int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 17 | int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 6a1d13d14..b131c0a64 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -10,6 +10,11 @@ | |||
10 | 10 | ||
11 | /* no options, no getopt */ | 11 | /* no options, no getopt */ |
12 | 12 | ||
13 | //usage:#define deallocvt_trivial_usage | ||
14 | //usage: "[N]" | ||
15 | //usage:#define deallocvt_full_usage "\n\n" | ||
16 | //usage: "Deallocate unused virtual terminal /dev/ttyN" | ||
17 | |||
13 | #include "libbb.h" | 18 | #include "libbb.h" |
14 | 19 | ||
15 | /* From <linux/vt.h> */ | 20 | /* From <linux/vt.h> */ |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index 301a90674..6b923d2d4 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -9,6 +9,14 @@ | |||
9 | */ | 9 | */ |
10 | /* no options, no getopt */ | 10 | /* no options, no getopt */ |
11 | 11 | ||
12 | //usage:#define dumpkmap_trivial_usage | ||
13 | //usage: "> keymap" | ||
14 | //usage:#define dumpkmap_full_usage "\n\n" | ||
15 | //usage: "Print a binary keyboard translation table to stdout" | ||
16 | //usage: | ||
17 | //usage:#define dumpkmap_example_usage | ||
18 | //usage: "$ dumpkmap > keymap\n" | ||
19 | |||
12 | #include "libbb.h" | 20 | #include "libbb.h" |
13 | 21 | ||
14 | /* From <linux/kd.h> */ | 22 | /* From <linux/kd.h> */ |
diff --git a/console-tools/fgconsole.c b/console-tools/fgconsole.c index e2dba4860..54355bee6 100644 --- a/console-tools/fgconsole.c +++ b/console-tools/fgconsole.c | |||
@@ -7,6 +7,11 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | //usage:#define fgconsole_trivial_usage | ||
11 | //usage: "" | ||
12 | //usage:#define fgconsole_full_usage "\n\n" | ||
13 | //usage: "Get active console" | ||
14 | |||
10 | #include "libbb.h" | 15 | #include "libbb.h" |
11 | 16 | ||
12 | /* From <linux/vt.h> */ | 17 | /* From <linux/vt.h> */ |
diff --git a/console-tools/kbd_mode.c b/console-tools/kbd_mode.c index 1481d0dbb..221a9f782 100644 --- a/console-tools/kbd_mode.c +++ b/console-tools/kbd_mode.c | |||
@@ -8,6 +8,18 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | //usage:#define kbd_mode_trivial_usage | ||
13 | //usage: "[-a|k|s|u] [-C TTY]" | ||
14 | //usage:#define kbd_mode_full_usage "\n\n" | ||
15 | //usage: "Report or set the keyboard mode\n" | ||
16 | //usage: "\nOptions:" | ||
17 | //usage: "\n -a Default (ASCII)" | ||
18 | //usage: "\n -k Medium-raw (keyboard)" | ||
19 | //usage: "\n -s Raw (scancode)" | ||
20 | //usage: "\n -u Unicode (utf-8)" | ||
21 | //usage: "\n -C TTY Affect TTY instead of /dev/tty" | ||
22 | |||
11 | #include "libbb.h" | 23 | #include "libbb.h" |
12 | #include <linux/kd.h> | 24 | #include <linux/kd.h> |
13 | 25 | ||
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 079626c20..588322b05 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -9,6 +9,16 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | //usage:#define loadfont_trivial_usage | ||
14 | //usage: "< font" | ||
15 | //usage:#define loadfont_full_usage "\n\n" | ||
16 | //usage: "Load a console font from stdin" | ||
17 | /* //usage: "\n -C TTY Affect TTY instead of /dev/tty" */ | ||
18 | //usage: | ||
19 | //usage:#define loadfont_example_usage | ||
20 | //usage: "$ loadfont < /etc/i18n/fontname\n" | ||
21 | |||
12 | #include "libbb.h" | 22 | #include "libbb.h" |
13 | #include <sys/kd.h> | 23 | #include <sys/kd.h> |
14 | 24 | ||
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 2d1c9e284..bcffe16b1 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -6,6 +6,16 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //usage:#define loadkmap_trivial_usage | ||
11 | //usage: "< keymap" | ||
12 | //usage:#define loadkmap_full_usage "\n\n" | ||
13 | //usage: "Load a binary keyboard translation table from stdin\n" | ||
14 | /* //usage: "\n -C TTY Affect TTY instead of /dev/tty" */ | ||
15 | //usage: | ||
16 | //usage:#define loadkmap_example_usage | ||
17 | //usage: "$ loadkmap < /etc/i18n/lang-keymap\n" | ||
18 | |||
9 | #include "libbb.h" | 19 | #include "libbb.h" |
10 | 20 | ||
11 | #define BINARY_KEYMAP_MAGIC "bkeymap" | 21 | #define BINARY_KEYMAP_MAGIC "bkeymap" |
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index 56f50c6cd..de5cf93fe 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c | |||
@@ -8,6 +8,19 @@ | |||
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | //usage:#define openvt_trivial_usage | ||
12 | //usage: "[-c N] [-sw] [PROG ARGS]" | ||
13 | //usage:#define openvt_full_usage "\n\n" | ||
14 | //usage: "Start PROG on a new virtual terminal\n" | ||
15 | //usage: "\nOptions:" | ||
16 | //usage: "\n -c N Use specified VT" | ||
17 | //usage: "\n -s Switch to the VT" | ||
18 | /* //usage: "\n -l Run PROG as login shell (by prepending '-')" */ | ||
19 | //usage: "\n -w Wait for PROG to exit" | ||
20 | //usage: | ||
21 | //usage:#define openvt_example_usage | ||
22 | //usage: "openvt 2 /bin/ash\n" | ||
23 | |||
11 | #include <linux/vt.h> | 24 | #include <linux/vt.h> |
12 | #include "libbb.h" | 25 | #include "libbb.h" |
13 | 26 | ||
diff --git a/console-tools/reset.c b/console-tools/reset.c index a23e4f408..65940bdec 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -11,6 +11,11 @@ | |||
11 | /* BTW, which "standard" package has this utility? It doesn't seem | 11 | /* BTW, which "standard" package has this utility? It doesn't seem |
12 | * to be ncurses, coreutils, console-tools... then what? */ | 12 | * to be ncurses, coreutils, console-tools... then what? */ |
13 | 13 | ||
14 | //usage:#define reset_trivial_usage | ||
15 | //usage: "" | ||
16 | //usage:#define reset_full_usage "\n\n" | ||
17 | //usage: "Reset the screen" | ||
18 | |||
14 | #include "libbb.h" | 19 | #include "libbb.h" |
15 | 20 | ||
16 | #define ESC "\033" | 21 | #define ESC "\033" |
diff --git a/console-tools/resize.c b/console-tools/resize.c index ee0728b71..4b0d63a03 100644 --- a/console-tools/resize.c +++ b/console-tools/resize.c | |||
@@ -7,6 +7,12 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | /* no options, no getopt */ | 9 | /* no options, no getopt */ |
10 | |||
11 | //usage:#define resize_trivial_usage | ||
12 | //usage: "" | ||
13 | //usage:#define resize_full_usage "\n\n" | ||
14 | //usage: "Resize the screen" | ||
15 | |||
10 | #include "libbb.h" | 16 | #include "libbb.h" |
11 | 17 | ||
12 | #define ESC "\033" | 18 | #define ESC "\033" |
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c index 87265baf8..59c83361c 100644 --- a/console-tools/setconsole.c +++ b/console-tools/setconsole.c | |||
@@ -8,6 +8,13 @@ | |||
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | //usage:#define setconsole_trivial_usage | ||
12 | //usage: "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]" | ||
13 | //usage:#define setconsole_full_usage "\n\n" | ||
14 | //usage: "Redirect system console output to DEVICE (default: /dev/tty)\n" | ||
15 | //usage: "\nOptions:" | ||
16 | //usage: "\n -r Reset output to /dev/console" | ||
17 | |||
11 | #include "libbb.h" | 18 | #include "libbb.h" |
12 | 19 | ||
13 | int setconsole_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 20 | int setconsole_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index ca8cd21c2..a6a7c2374 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -8,6 +8,18 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | //usage:#define setkeycodes_trivial_usage | ||
13 | //usage: "SCANCODE KEYCODE..." | ||
14 | //usage:#define setkeycodes_full_usage "\n\n" | ||
15 | //usage: "Set entries into the kernel's scancode-to-keycode map,\n" | ||
16 | //usage: "allowing unusual keyboards to generate usable keycodes.\n\n" | ||
17 | //usage: "SCANCODE may be either xx or e0xx (hexadecimal),\n" | ||
18 | //usage: "and KEYCODE is given in decimal." | ||
19 | //usage: | ||
20 | //usage:#define setkeycodes_example_usage | ||
21 | //usage: "$ setkeycodes e030 127\n" | ||
22 | |||
11 | #include "libbb.h" | 23 | #include "libbb.h" |
12 | 24 | ||
13 | /* From <linux/kd.h> */ | 25 | /* From <linux/kd.h> */ |
diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c index 52d2608aa..83a895407 100644 --- a/console-tools/setlogcons.c +++ b/console-tools/setlogcons.c | |||
@@ -9,6 +9,11 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | //usage:#define setlogcons_trivial_usage | ||
13 | //usage: "N" | ||
14 | //usage:#define setlogcons_full_usage "\n\n" | ||
15 | //usage: "Redirect the kernel output to console N (0 for current)" | ||
16 | |||
12 | #include "libbb.h" | 17 | #include "libbb.h" |
13 | 18 | ||
14 | int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 19 | int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
diff --git a/console-tools/showkey.c b/console-tools/showkey.c index 06df68bfd..2c832c92c 100644 --- a/console-tools/showkey.c +++ b/console-tools/showkey.c | |||
@@ -7,6 +7,15 @@ | |||
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | //usage:#define showkey_trivial_usage | ||
11 | //usage: "[-a | -k | -s]" | ||
12 | //usage:#define showkey_full_usage "\n\n" | ||
13 | //usage: "Show keys pressed\n" | ||
14 | //usage: "\nOptions:" | ||
15 | //usage: "\n -a Display decimal/octal/hex values of the keys" | ||
16 | //usage: "\n -k Display interpreted keycodes (default)" | ||
17 | //usage: "\n -s Display raw scan-codes" | ||
18 | |||
10 | #include "libbb.h" | 19 | #include "libbb.h" |
11 | #include <linux/kd.h> | 20 | #include <linux/kd.h> |
12 | 21 | ||
diff --git a/include/usage.src.h b/include/usage.src.h index 69b8da272..c1720b5f1 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -403,21 +403,11 @@ INSERT | |||
403 | "# ls -l /bin/ls\n" \ | 403 | "# ls -l /bin/ls\n" \ |
404 | "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n" | 404 | "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n" |
405 | 405 | ||
406 | #define chvt_trivial_usage \ | ||
407 | "N" | ||
408 | #define chvt_full_usage "\n\n" \ | ||
409 | "Change the foreground virtual terminal to /dev/ttyN" | ||
410 | |||
411 | #define cksum_trivial_usage \ | 406 | #define cksum_trivial_usage \ |
412 | "FILES..." | 407 | "FILES..." |
413 | #define cksum_full_usage "\n\n" \ | 408 | #define cksum_full_usage "\n\n" \ |
414 | "Calculate the CRC32 checksums of FILES" | 409 | "Calculate the CRC32 checksums of FILES" |
415 | 410 | ||
416 | #define clear_trivial_usage \ | ||
417 | "" | ||
418 | #define clear_full_usage "\n\n" \ | ||
419 | "Clear screen" | ||
420 | |||
421 | #define cmp_trivial_usage \ | 411 | #define cmp_trivial_usage \ |
422 | "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" | 412 | "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
423 | #define cmp_full_usage "\n\n" \ | 413 | #define cmp_full_usage "\n\n" \ |
@@ -614,11 +604,6 @@ INSERT | |||
614 | "4+0 records in\n" \ | 604 | "4+0 records in\n" \ |
615 | "4+0 records out\n" | 605 | "4+0 records out\n" |
616 | 606 | ||
617 | #define deallocvt_trivial_usage \ | ||
618 | "[N]" | ||
619 | #define deallocvt_full_usage "\n\n" \ | ||
620 | "Deallocate unused virtual terminal /dev/ttyN" | ||
621 | |||
622 | #define delgroup_trivial_usage \ | 607 | #define delgroup_trivial_usage \ |
623 | IF_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP" | 608 | IF_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP" |
624 | #define delgroup_full_usage "\n\n" \ | 609 | #define delgroup_full_usage "\n\n" \ |
@@ -806,13 +791,6 @@ INSERT | |||
806 | "104 ./docs\n" \ | 791 | "104 ./docs\n" \ |
807 | "2417 .\n" | 792 | "2417 .\n" |
808 | 793 | ||
809 | #define dumpkmap_trivial_usage \ | ||
810 | "> keymap" | ||
811 | #define dumpkmap_full_usage "\n\n" \ | ||
812 | "Print a binary keyboard translation table to stdout" | ||
813 | #define dumpkmap_example_usage \ | ||
814 | "$ dumpkmap > keymap\n" | ||
815 | |||
816 | #define dumpleases_trivial_usage \ | 794 | #define dumpleases_trivial_usage \ |
817 | "[-r|-a] [-f LEASEFILE]" | 795 | "[-r|-a] [-f LEASEFILE]" |
818 | #define dumpleases_full_usage "\n\n" \ | 796 | #define dumpleases_full_usage "\n\n" \ |
@@ -1037,11 +1015,6 @@ INSERT | |||
1037 | "\n -H HEADS" \ | 1015 | "\n -H HEADS" \ |
1038 | "\n -S SECTORS" \ | 1016 | "\n -S SECTORS" \ |
1039 | 1017 | ||
1040 | #define fgconsole_trivial_usage \ | ||
1041 | "" | ||
1042 | #define fgconsole_full_usage "\n\n" \ | ||
1043 | "Get active console" | ||
1044 | |||
1045 | #define findfs_trivial_usage \ | 1018 | #define findfs_trivial_usage \ |
1046 | "LABEL=label or UUID=uuid" | 1019 | "LABEL=label or UUID=uuid" |
1047 | #define findfs_full_usage "\n\n" \ | 1020 | #define findfs_full_usage "\n\n" \ |
@@ -1712,17 +1685,6 @@ INSERT | |||
1712 | " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \ | 1685 | " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \ |
1713 | " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \ | 1686 | " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \ |
1714 | 1687 | ||
1715 | #define kbd_mode_trivial_usage \ | ||
1716 | "[-a|k|s|u] [-C TTY]" | ||
1717 | #define kbd_mode_full_usage "\n\n" \ | ||
1718 | "Report or set the keyboard mode\n" \ | ||
1719 | "\nOptions:" \ | ||
1720 | "\n -a Default (ASCII)" \ | ||
1721 | "\n -k Medium-raw (keyboard)" \ | ||
1722 | "\n -s Raw (scancode)" \ | ||
1723 | "\n -u Unicode (utf-8)" \ | ||
1724 | "\n -C TTY Affect TTY instead of /dev/tty" \ | ||
1725 | |||
1726 | #define kill_trivial_usage \ | 1688 | #define kill_trivial_usage \ |
1727 | "[-l] [-SIG] PID..." | 1689 | "[-l] [-SIG] PID..." |
1728 | #define kill_full_usage "\n\n" \ | 1690 | #define kill_full_usage "\n\n" \ |
@@ -1822,24 +1784,6 @@ INSERT | |||
1822 | #define load_policy_trivial_usage NOUSAGE_STR | 1784 | #define load_policy_trivial_usage NOUSAGE_STR |
1823 | #define load_policy_full_usage "" | 1785 | #define load_policy_full_usage "" |
1824 | 1786 | ||
1825 | #define loadfont_trivial_usage \ | ||
1826 | "< font" | ||
1827 | #define loadfont_full_usage "\n\n" \ | ||
1828 | "Load a console font from stdin" \ | ||
1829 | /* "\n -C TTY Affect TTY instead of /dev/tty" */ \ | ||
1830 | |||
1831 | #define loadfont_example_usage \ | ||
1832 | "$ loadfont < /etc/i18n/fontname\n" | ||
1833 | |||
1834 | #define loadkmap_trivial_usage \ | ||
1835 | "< keymap" | ||
1836 | #define loadkmap_full_usage "\n\n" \ | ||
1837 | "Load a binary keyboard translation table from stdin\n" \ | ||
1838 | /* "\n -C TTY Affect TTY instead of /dev/tty" */ \ | ||
1839 | |||
1840 | #define loadkmap_example_usage \ | ||
1841 | "$ loadkmap < /etc/i18n/lang-keymap\n" | ||
1842 | |||
1843 | #define logger_trivial_usage \ | 1787 | #define logger_trivial_usage \ |
1844 | "[OPTIONS] [MESSAGE]" | 1788 | "[OPTIONS] [MESSAGE]" |
1845 | #define logger_full_usage "\n\n" \ | 1789 | #define logger_full_usage "\n\n" \ |
@@ -2405,19 +2349,6 @@ INSERT | |||
2405 | "Write an unambiguous representation, octal bytes by default, of FILE\n" \ | 2349 | "Write an unambiguous representation, octal bytes by default, of FILE\n" \ |
2406 | "(or stdin) to stdout" | 2350 | "(or stdin) to stdout" |
2407 | 2351 | ||
2408 | #define openvt_trivial_usage \ | ||
2409 | "[-c N] [-sw] [PROG ARGS]" | ||
2410 | #define openvt_full_usage "\n\n" \ | ||
2411 | "Start PROG on a new virtual terminal\n" \ | ||
2412 | "\nOptions:" \ | ||
2413 | "\n -c N Use specified VT" \ | ||
2414 | "\n -s Switch to the VT" \ | ||
2415 | /* "\n -l Run PROG as login shell (by prepending '-')" */ \ | ||
2416 | "\n -w Wait for PROG to exit" \ | ||
2417 | |||
2418 | #define openvt_example_usage \ | ||
2419 | "openvt 2 /bin/ash\n" | ||
2420 | |||
2421 | /* | 2352 | /* |
2422 | #define parse_trivial_usage \ | 2353 | #define parse_trivial_usage \ |
2423 | "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..." | 2354 | "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..." |
@@ -2704,16 +2635,6 @@ INSERT | |||
2704 | #define scriptreplay_full_usage "\n\n" \ | 2635 | #define scriptreplay_full_usage "\n\n" \ |
2705 | "Play back typescripts, using timing information" | 2636 | "Play back typescripts, using timing information" |
2706 | 2637 | ||
2707 | #define reset_trivial_usage \ | ||
2708 | "" | ||
2709 | #define reset_full_usage "\n\n" \ | ||
2710 | "Reset the screen" | ||
2711 | |||
2712 | #define resize_trivial_usage \ | ||
2713 | "" | ||
2714 | #define resize_full_usage "\n\n" \ | ||
2715 | "Resize the screen" | ||
2716 | |||
2717 | #define restorecon_trivial_usage \ | 2638 | #define restorecon_trivial_usage \ |
2718 | "[-iFnRv] [-e EXCLUDEDIR]... [-o FILE] [-f FILE]" | 2639 | "[-iFnRv] [-e EXCLUDEDIR]... [-o FILE] [-f FILE]" |
2719 | #define restorecon_full_usage "\n\n" \ | 2640 | #define restorecon_full_usage "\n\n" \ |
@@ -2926,13 +2847,6 @@ INSERT | |||
2926 | " -v Verbose" \ | 2847 | " -v Verbose" \ |
2927 | "\n -b Display current state of booleans" \ | 2848 | "\n -b Display current state of booleans" \ |
2928 | 2849 | ||
2929 | #define setconsole_trivial_usage \ | ||
2930 | "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]" | ||
2931 | #define setconsole_full_usage "\n\n" \ | ||
2932 | "Redirect system console output to DEVICE (default: /dev/tty)\n" \ | ||
2933 | "\nOptions:" \ | ||
2934 | "\n -r Reset output to /dev/console" \ | ||
2935 | |||
2936 | #define setenforce_trivial_usage \ | 2850 | #define setenforce_trivial_usage \ |
2937 | "[Enforcing | Permissive | 1 | 0]" | 2851 | "[Enforcing | Permissive | 1 | 0]" |
2938 | #define setenforce_full_usage "" | 2852 | #define setenforce_full_usage "" |
@@ -2972,22 +2886,6 @@ INSERT | |||
2972 | #define setfont_example_usage \ | 2886 | #define setfont_example_usage \ |
2973 | "$ setfont -m koi8-r /etc/i18n/fontname\n" | 2887 | "$ setfont -m koi8-r /etc/i18n/fontname\n" |
2974 | 2888 | ||
2975 | #define setkeycodes_trivial_usage \ | ||
2976 | "SCANCODE KEYCODE..." | ||
2977 | #define setkeycodes_full_usage "\n\n" \ | ||
2978 | "Set entries into the kernel's scancode-to-keycode map,\n" \ | ||
2979 | "allowing unusual keyboards to generate usable keycodes.\n\n" \ | ||
2980 | "SCANCODE may be either xx or e0xx (hexadecimal),\n" \ | ||
2981 | "and KEYCODE is given in decimal." \ | ||
2982 | |||
2983 | #define setkeycodes_example_usage \ | ||
2984 | "$ setkeycodes e030 127\n" | ||
2985 | |||
2986 | #define setlogcons_trivial_usage \ | ||
2987 | "N" | ||
2988 | #define setlogcons_full_usage "\n\n" \ | ||
2989 | "Redirect the kernel output to console N (0 for current)" | ||
2990 | |||
2991 | #define setsebool_trivial_usage \ | 2889 | #define setsebool_trivial_usage \ |
2992 | "boolean value" | 2890 | "boolean value" |
2993 | 2891 | ||
@@ -3012,15 +2910,6 @@ INSERT | |||
3012 | "\n -f FILE Read from FILE instead of /var/log/wtmp" \ | 2910 | "\n -f FILE Read from FILE instead of /var/log/wtmp" \ |
3013 | ) | 2911 | ) |
3014 | 2912 | ||
3015 | #define showkey_trivial_usage \ | ||
3016 | "[-a | -k | -s]" | ||
3017 | #define showkey_full_usage "\n\n" \ | ||
3018 | "Show keys pressed\n" \ | ||
3019 | "\nOptions:" \ | ||
3020 | "\n -a Display decimal/octal/hex values of the keys" \ | ||
3021 | "\n -k Display interpreted keycodes (default)" \ | ||
3022 | "\n -s Display raw scan-codes" \ | ||
3023 | |||
3024 | #define slattach_trivial_usage \ | 2913 | #define slattach_trivial_usage \ |
3025 | "[-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE" | 2914 | "[-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE" |
3026 | #define slattach_full_usage "\n\n" \ | 2915 | #define slattach_full_usage "\n\n" \ |