- "\t-k\tprint sizes in kilobytes(compatability)\n"
-#endif
-#endif
- ;
-#endif
-
-#if defined BB_DUMPKMAP
-const char dumpkmap_usage[] =
- "dumpkmap > keymap"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrints out a binary keyboard translation table to standard input."
-#endif
- ;
-#endif
-
-#if defined BB_DUTMP
-const char dutmp_usage[] =
- "dutmp [FILE]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nDump utmp file format (pipe delimited) from FILE\n"
- "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')"
-#endif
- ;
-#endif
-
-#if defined BB_ECHO
-const char echo_usage[] =
- "echo [-neE] [ARG ...]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrints the specified ARGs to stdout\n\n"
- "Options:\n"
- "\t-n\tsuppress trailing newline\n"
- "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
- "\t-E\tdisable interpretation of backslash-escaped characters"
-#endif
- ;
-#endif
-
-#if defined BB_EXPR
-const char expr_usage[] =
- "expr EXPRESSION"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-"\n\nPrints the value of EXPRESSION to standard output.\n\n"
-"EXPRESSION may be:\n"
-"ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n"
-"ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n"
-"ARG1 < ARG2 ARG1 is less than ARG2\n"
-"ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n"
-"ARG1 = ARG2 ARG1 is equal to ARG2\n"
-"ARG1 != ARG2 ARG1 is unequal to ARG2\n"
-"ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n"
-"ARG1 > ARG2 ARG1 is greater than ARG2\n"
-"ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n"
-"ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n"
-"ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n"
-"ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n"
-"ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n"
-"STRING : REGEXP anchored pattern match of REGEXP in STRING\n"
-"match STRING REGEXP same as STRING : REGEXP\n"
-"substr STRING POS LENGTH substring of STRING, POS counted from 1\n"
-"index STRING CHARS index in STRING where any CHARS is found, or 0\n"
-"length STRING length of STRING\n"
-"quote TOKEN interpret TOKEN as a string, even if it is a \n"
-" keyword like `match' or an operator like `/'\n"
-"( EXPRESSION ) value of EXPRESSION\n\n"
-"Beware that many operators need to be escaped or quoted for shells.\n"
-"Comparisons are arithmetic if both ARGs are numbers, else\n"
-"lexicographical. Pattern matches return the string matched between \n"
-"\\( and \\) or null; if \\( and \\) are not used, they return the number \n"
-"of characters matched or 0."
-
-#endif
- ;
-#endif
-
-
-#if defined BB_TRUE_FALSE
-const char false_usage[] =
- "false"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nReturn an exit code of FALSE (1)."
-#endif
- ;
-#endif
-
-#if defined BB_FDFLUSH
-const char fdflush_usage[] =
- "fdflush DEVICE"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nForces floppy disk drive to detect disk change"
-#endif
- ;
-#endif
-
-#if defined BB_FIND
-const char find_usage[] =
- "find [PATH...] [EXPRESSION]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nSearch for files in a directory hierarchy. The default PATH is\n"
- "the current directory; default EXPRESSION is '-print'\n\n"
- "\nEXPRESSION may consist of:\n"
- "\t-follow\t\tDereference symbolic links.\n"
- "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
-#ifdef BB_FEATURE_FIND_TYPE
- "\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)\n"
-#endif
-#ifdef BB_FEATURE_FIND_PERM
- "\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN); or exactly (NNN)\n"
-#endif
-#ifdef BB_FEATURE_FIND_MTIME
- "\t-mtime TIME\tModified time is greater than (+N); less than (-N); or exactly (N) days\n"
-#endif
-#endif
- ;
-#endif
-
-#if defined BB_FREE
-const char free_usage[] =
- "free"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nDisplays the amount of free and used system memory"
-#endif
- ;
-#endif
-
-#if defined BB_FREERAMDISK
-const char freeramdisk_usage[] =
- "freeramdisk DEVICE"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nFrees all memory used by the specified ramdisk."
-#endif
- ;
-#endif
-
-#if defined BB_FSCK_MINIX
-const char fsck_minix_usage[] =
- "Usage: fsck.minix [-larvsmf] /dev/name"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPerforms a consistency check for MINIX filesystems.\n\n"
- "Options:\n"
- "\t-l\tLists all filenames\n"
- "\t-r\tPerform interactive repairs\n"
- "\t-a\tPerform automatic repairs\n"
- "\t-v\tverbose\n"
- "\t-s\tOutputs super-block information\n"
- "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
- "\t-f\tForce file system check."
-#endif
- ;
-#endif
-
-#if defined BB_GETOPT
-const char getopt_usage[] =
-"getopt [OPTIONS]..."
-#ifndef BB_FEATURE_TRIVIAL_HELP
-"\nParse command options\n"
-" -a, --alternative Allow long options starting with single -\n"
-" -l, --longoptions=longopts Long options to be recognized\n"
-" -n, --name=progname The name under which errors are reported\n"
-" -o, --options=optstring Short options to be recognized\n"
-" -q, --quiet Disable error reporting by getopt(3)\n"
-" -Q, --quiet-output No normal output\n"
-" -s, --shell=shell Set shell quoting conventions\n"
-" -T, --test Test for getopt(1) version\n"
-" -u, --unqote Do not quote the output"
-#endif
-;
-#endif
-
-#if defined BB_GREP
-const char grep_usage[] =
- "grep [-ihHnqvs] pattern [files...]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nSearch for PATTERN in each FILE or standard input.\n\n"
- "Options:\n"
- "\t-H\tprefix output lines with filename where match was found\n"
- "\t-h\tsuppress the prefixing filename on output\n"
- "\t-i\tignore case distinctions\n"
- "\t-n\tprint line number with output lines\n"
- "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
- "\t-v\tselect non-matching lines\n"
- "\t-s\tsuppress file open/read error messages"
-#endif
- ;
-#endif
-
-#if defined BB_GUNZIP
-const char gunzip_usage[] =
- "gunzip [OPTION]... FILE"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nUncompress FILE (or standard input if FILE is '-').\n\n"
- "Options:\n"
- "\t-c\tWrite output to standard output\n"
- "\t-t\tTest compressed file integrity"
-#endif
- ;
-#endif
-
-#if defined BB_GZIP
-const char gzip_usage[] =
- "gzip [OPTION]... FILE"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nCompress FILE with maximum compression.\n"
- "When FILE is '-', reads standard input. Implies -c.\n\n"
- "Options:\n"
- "\t-c\tWrite output to standard output instead of FILE.gz\n"
- "\t-d\tdecompress"
-#endif
- ;
-#endif
-
-#if defined BB_HALT
-const char halt_usage[] =
- "halt"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nHalt the system."
-#endif
- ;
-#endif
-
-#if defined BB_HEAD
-const char head_usage[] =
- "head [OPTION] [FILE]..."
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrint first 10 lines of each FILE to standard output.\n"
- "With more than one FILE, precede each with a header giving the\n"
- "file name. With no FILE, or when FILE is -, read standard input.\n\n"
-
- "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10"
-#endif
- ;
-#endif
-
-#if defined BB_HOSTID
-const char hostid_usage[] =
- "hostid"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrint out a unique 32-bit identifier for the machine."
-#endif
- ;
-#endif
-
-#if defined BB_HOSTNAME
-const char hostname_usage[] =
- "hostname [OPTION] {hostname | -F file}"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nGet or set the hostname or DNS domain name. If a hostname is given\n"
- "(or a file with the -F parameter), the host name will be set.\n\n"
-
- "Options:\n"
- "\t-s\t\tShort\n"
- "\t-i\t\tAddresses for the hostname\n"
- "\t-d\t\tDNS domain name\n"
- "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
-#endif
- ;
-#endif
-
-#if defined BB_ID
-const char id_usage[] =
- "id [OPTIONS]... [USERNAME]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrint information for USERNAME or the current user\n\n"
- "Options:\n"
- "\t-g\tprints only the group ID\n"
- "\t-u\tprints only the user ID\n"
- "\t-n\tprint a name instead of a number (with for -ug)\n"
- "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
-#endif
- ;
-#endif
-
-#if defined BB_INSMOD
-const char insmod_usage[] =
- "insmod [OPTION]... MODULE [symbol=value]..."
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nLoads the specified kernel modules into the kernel.\n\n"
- "Options:\n"
- "\t-f\tForce module to load into the wrong kernel version.\n"
- "\t-k\tMake module autoclean-able.\n"
- "\t-v\tverbose output\n"
- "\t-L\tLock to prevent simultaneous loads of a module\n"
- "\t-x\tdo not export externs"
-#endif
- ;
-#endif
-
-#if defined BB_KILL
-const char kill_usage[] =
- "kill [-signal] process-id [process-id ...]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
- "Options:\n" "\t-l\tList all signal names and numbers."
-#endif
- ;
-#endif
-
-#if defined BB_KILLALL
-const char killall_usage[] =
- "killall [-signal] process-name [process-name ...]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
- "Options:\n" "\t-l\tList all signal names and numbers."
-#endif
- ;
-#endif
-
-#if defined BB_LENGTH
-const char length_usage[] =
- "length STRING"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrints out the length of the specified STRING."
-#endif
- ;
-#endif
-
-#if defined BB_LN
-const char ln_usage[] =
- "ln [OPTION] TARGET... LINK_NAME|DIRECTORY"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
- "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
- "Options:\n"
- "\t-s\tmake symbolic links instead of hard links\n"
- "\t-f\tremove existing destination files\n"
- "\t-n\tno dereference symlinks - treat like normal file"
-#endif
- ;
-#endif
-
-#if defined BB_LOADACM
-const char loadacm_usage[] =
- "loadacm < mapfile"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nLoads an acm from standard input."
-#endif
- ;
-#endif
-
-#if defined BB_LOADFONT
-const char loadfont_usage[] =
- "loadfont < font"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nLoads a console font from standard input."
-#endif
- ;
-#endif
-
-#if defined BB_LOADKMAP
-const char loadkmap_usage[] =
- "loadkmap < keymap"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nLoads a binary keyboard translation table from standard input."
-#endif
- ;
-#endif
-
-#if defined BB_LOGGER
-const char logger_usage[] =
- "logger [OPTION]... [MESSAGE]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nWrite MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n"
- "Options:\n"
- "\t-s\tLog to stderr as well as the system log.\n"
- "\t-t\tLog using the specified tag (defaults to user name).\n"
- "\t-p\tEnter the message with the specified priority.\n"
- "\t\tThis may be numerical or a ``facility.level'' pair."
-#endif
- ;
-#endif
-
-#if defined BB_LOGNAME
-const char logname_usage[] =
- "logname"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrint the name of the current user."
-#endif
- ;
-#endif
-
-#if defined BB_LS
-const char ls_usage[] =
- "ls [-1Aa"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "c"
-#endif
- "Cd"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "e"
-#endif
-#ifdef BB_FEATURE_LS_FILETYPES
- "F"
-#endif
- "iln"
-#ifdef BB_FEATURE_LS_FILETYPES
- "p"
-#endif
-#ifdef BB_FEATURE_LS_FOLLOWLINKS
- "L"
-#endif
-#ifdef BB_FEATURE_LS_RECURSIVE
- "R"
-#endif
-#ifdef BB_FEATURE_LS_SORTFILES
- "rS"
-#endif
- "s"
-#ifdef BB_FEATURE_AUTOWIDTH
- "T"
-#endif
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "tu"
-#endif
-#ifdef BB_FEATURE_LS_SORTFILES
- "v"
-#endif
-#ifdef BB_FEATURE_AUTOWIDTH
- "w"
-#endif
- "x"
-#ifdef BB_FEATURE_LS_SORTFILES
- "X"
-#endif
-#ifdef BB_FEATURE_HUMAN_READABLE
- "h"
-#endif
- "k] [filenames...]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nList directory contents\n\n"
- "Options:\n"
- "\t-1\tlist files in a single column\n"
- "\t-A\tdo not list implied . and ..\n"
- "\t-a\tdo not hide entries starting with .\n"
- "\t-C\tlist entries by columns\n"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-c\twith -l: show ctime (the time of last\n"
- "\t\tmodification of file status information)\n"
-#endif
- "\t-d\tlist directory entries instead of contents\n"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-e\tlist both full date and full time\n"
-#endif
-#ifdef BB_FEATURE_LS_FILETYPES
- "\t-F\tappend indicator (one of */=@|) to entries\n"
-#endif
- "\t-i\tlist the i-node for each file\n"
- "\t-l\tuse a long listing format\n"
- "\t-n\tlist numeric UIDs and GIDs instead of names\n"
-#ifdef BB_FEATURE_LS_FILETYPES
- "\t-p\tappend indicator (one of /=@|) to entries\n"
-#endif
-#ifdef BB_FEATURE_LS_FOLLOWLINKS
- "\t-L\tlist entries pointed to by symbolic links\n"
-#endif
-#ifdef BB_FEATURE_LS_RECURSIVE
- "\t-R\tlist subdirectories recursively\n"
-#endif
-#ifdef BB_FEATURE_LS_SORTFILES
- "\t-r\tsort the listing in reverse order\n"
- "\t-S\tsort the listing by file size\n"
-#endif
- "\t-s\tlist the size of each file, in blocks\n"
-#ifdef BB_FEATURE_AUTOWIDTH
- "\t-T NUM\tassume Tabstop every NUM columns\n"
-#endif
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-t\twith -l: show modification time (the time of last\n"
- "\t\tchange of the file)\n"
- "\t-u\twith -l: show access time (the time of last\n"
- "\t\taccess of the file)\n"
-#endif
-#ifdef BB_FEATURE_LS_SORTFILES
- "\t-v\tsort the listing by version\n"
-#endif
-#ifdef BB_FEATURE_AUTOWIDTH
- "\t-w NUM\tassume the terminal is NUM columns wide\n"
-#endif
- "\t-x\tlist entries by lines instead of by columns\n"
-#ifdef BB_FEATURE_LS_SORTFILES
- "\t-X\tsort the listing by extension\n"
-#endif
-
-#ifdef BB_FEATURE_HUMAN_READABLE
- "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
- "\t-k\tprint sizes in kilobytes(default)\n"
-#else
- "\t-k\tprint sizes in kilobytes(compatability)"
-#endif
-
-#endif /* BB_FEATURE_TRIVIAL_HELP */
- ;
-#endif /* BB_LS */
-
-#if defined BB_LSMOD
-const char lsmod_usage[] =
- "lsmod"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nList the currently loaded kernel modules."
-#endif
- ;
-#endif
-
-#if defined BB_MAKEDEVS
-const char makedevs_usage[] =
- "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nCreates a range of block or character special files\n\n"
- "TYPEs include:\n"
- "\tb:\tMake a block (buffered) device.\n"
- "\tc or u:\tMake a character (un-buffered) device.\n"
- "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
- "FIRST specifies the number appended to NAME to create the first device.\n"
- "LAST specifies the number of the last item that should be created.\n"
- "If 's' is the last argument, the base device is created as well.\n\n"
- "For example:\n"
- "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
- "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
-#endif
- ;
-#endif
-
-#if defined BB_MD5SUM
-const char md5sum_usage[] =
- "md5sum [OPTION] [FILE]...\n"
- "or: md5sum [OPTION] -c [FILE]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nPrint or check MD5 checksums.\n\n"
- "Options:\n"
- "With no FILE, or when FILE is -, read standard input.\n\n"
- "\t-b\tread files in binary mode\n"
- "\t-c\tcheck MD5 sums against given list\n"
- "\t-t\tread files in text mode (default)\n"
- "\t-g\tread a string\n"
- "\nThe following two options are useful only when verifying checksums:\n"
- "\t-s,\tdon't output anything, status code shows success\n"
- "\t-w,\twarn about improperly formated MD5 checksum lines"
-#endif
- ;
-#endif
-
-#if defined BB_MKDIR
-const char mkdir_usage[] =
- "mkdir [OPTION] DIRECTORY..."
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
-
- "Options:\n"
- "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
- "\t-p\tno error if existing, make parent directories as needed"
-#endif
- ;
-#endif
-
-#if defined BB_MKFIFO
-const char mkfifo_usage[] =
- "mkfifo [OPTIONS] name"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nCreates a named pipe (identical to 'mknod name p')\n\n"
- "Options:\n"
- "\t-m\tcreate the pipe using the specified mode (default a=rw)"
-#endif
- ;
-#endif
-
-#if defined BB_MKFS_MINIX
-const char mkfs_minix_usage[] =
- "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nMake a MINIX filesystem.\n\n"
- "Options:\n"
- "\t-c\t\tCheck the device for bad blocks\n"
- "\t-n [14|30]\tSpecify the maximum length of filenames\n"
- "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
- "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
- "\t-v\t\tMake a Minix version 2 filesystem"
-#endif
- ;