aboutsummaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/usage.c b/usage.c
index d5a34ec28..56ea80d08 100644
--- a/usage.c
+++ b/usage.c
@@ -83,6 +83,15 @@ const char chvt_usage[] =
83 ; 83 ;
84#endif 84#endif
85 85
86#if defined BB_CLEAR
87const char clear_usage[] =
88 "clear\n"
89#ifndef BB_FEATURE_TRIVIAL_HELP
90 "\nClear screen.\n"
91#endif
92 ;
93#endif
94
86#if defined BB_CP_MV 95#if defined BB_CP_MV
87const char cp_usage[] = 96const char cp_usage[] =
88 "cp [OPTION]... SOURCE DEST\n" 97 "cp [OPTION]... SOURCE DEST\n"
@@ -241,6 +250,15 @@ const char echo_usage[] =
241 ; 250 ;
242#endif 251#endif
243 252
253#if defined BB_TRUE_FALSE
254const char false_usage[] =
255 "false\n"
256#ifndef BB_FEATURE_TRIVIAL_HELP
257 "\nReturn an exit code of FALSE (1).\n"
258#endif
259 ;
260#endif
261
244#if defined BB_FDFLUSH 262#if defined BB_FDFLUSH
245const char fdflush_usage[] = 263const char fdflush_usage[] =
246 "fdflush DEVICE\n" 264 "fdflush DEVICE\n"
@@ -340,6 +358,14 @@ const char gzip_usage[] =
340 ; 358 ;
341#endif 359#endif
342 360
361#if defined BB_HALT
362const char halt_usage[] =
363 "halt\n"
364#ifndef BB_FEATURE_TRIVIAL_HELP
365 "\nHalt the system.\n"
366#endif
367 ;
368
343#if defined BB_HEAD 369#if defined BB_HEAD
344const char head_usage[] = 370const char head_usage[] =
345 "head [OPTION] [FILE]...\n" 371 "head [OPTION] [FILE]...\n"
@@ -353,6 +379,15 @@ const char head_usage[] =
353 ; 379 ;
354#endif 380#endif
355 381
382#if defined BB_HOSTID
383const char hostid_usage[] =
384 "hostid\n"
385#ifndef BB_FEATURE_TRIVIAL_HELP
386 "\nPrint out a unique 32-bit identifier for the machine.\n"
387#endif
388 ;
389#endif
390
356#if defined BB_HOSTNAME 391#if defined BB_HOSTNAME
357const char hostname_usage[] = 392const char hostname_usage[] =
358 "hostname [OPTION] {hostname | -F file}\n" 393 "hostname [OPTION] {hostname | -F file}\n"
@@ -549,6 +584,15 @@ const char ls_usage[] =
549 ; 584 ;
550#endif 585#endif
551 586
587#if defined BB_LSMOD
588const char lsmod_usage[] =
589 "lsmod\n"
590#ifndef BB_FEATURE_TRIVIAL_HELP
591 "\nList the currently loaded kernel modules.\n"
592#endif
593 ;
594#endif
595
552#if defined BB_MAKEDEVS 596#if defined BB_MAKEDEVS
553const char makedevs_usage[] = 597const char makedevs_usage[] =
554 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n" 598 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
@@ -767,6 +811,15 @@ const char ping_usage[] =
767#endif 811#endif
768#endif 812#endif
769 813
814#if defined BB_POWEROFF
815const char poweroff_usage[] =
816 "poweroff\n"
817#ifndef BB_FEATURE_TRIVIAL_HELP
818 "\nHalt the system and request that the kernel shut off the power.\n"
819#endif
820 ;
821#endif
822
770#if defined BB_PRINTF 823#if defined BB_PRINTF
771const char printf_usage[] = 824const char printf_usage[] =
772 "printf FORMAT [ARGUMENT...]\n" 825 "printf FORMAT [ARGUMENT...]\n"
@@ -787,6 +840,24 @@ const char ps_usage[] =
787 ; 840 ;
788#endif 841#endif
789 842
843#if defined BB_PWD
844const char pwd_usage[] =
845 "pwd\n"
846#ifndef BB_FEATURE_TRIVIAL_HELP
847 "\nPrint the full filename of the current working directory.\n"
848#endif
849 ;
850#endif
851
852#if defined BB_REBOOT
853const char reboot_usage[] =
854 "reboot\n"
855#ifndef BB_FEATURE_TRIVIAL_HELP
856 "\nReboot the system.\n"
857#endif
858 ;
859#endif
860
790#if defined BB_RM 861#if defined BB_RM
791const char rm_usage[] = 862const char rm_usage[] =
792 "rm [OPTION]... FILE...\n" 863 "rm [OPTION]... FILE...\n"
@@ -1055,6 +1126,15 @@ const char tr_usage[] =
1055 ; 1126 ;
1056#endif 1127#endif
1057 1128
1129#if defined BB_TRUE_FALSE
1130const char true_usage[] =
1131 "true\n"
1132#ifndef BB_FEATURE_TRIVIAL_HELP
1133 "\nReturn an exit code of TRUE (0).\n"
1134#endif
1135 ;
1136#endif
1137
1058#if defined BB_TTY 1138#if defined BB_TTY
1059const char tty_usage[] = 1139const char tty_usage[] =
1060 "tty\n" 1140 "tty\n"
@@ -1129,6 +1209,15 @@ const char update_usage[] =
1129 ; 1209 ;
1130#endif 1210#endif
1131 1211
1212#if defined BB_UPTIME
1213const char uptime_usage[] =
1214 "uptime\n"
1215#ifndef BB_FEATURE_TRIVIAL_HELP
1216 "\nDisplay the time since the last boot.\n"
1217#endif
1218 ;
1219#endif
1220
1132#if defined BB_USLEEP 1221#if defined BB_USLEEP
1133const char usleep_usage[] = 1222const char usleep_usage[] =
1134 "usleep N\n" 1223 "usleep N\n"