X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusage.h;h=33a81c4671b4c3f2e40c39f958617e0e6ce9ce2e;hb=924f93e848c507c92beb1b106c7c52e428d3c2c2;hp=18593fb1d1499817e5d90270a51949ab056086af;hpb=27f64e1f4eb4354844f6553e37501deffde8373e;p=oweals%2Fbusybox.git diff --git a/include/usage.h b/include/usage.h index 18593fb1d..33a81c467 100644 --- a/include/usage.h +++ b/include/usage.h @@ -38,6 +38,14 @@ "\t-x\t\textract\n" \ "\t-v\t\tverbosely list files processed\n" +#define awk_trivial_usage \ + "[-v var=val][-F sep] { -f progname | 'programtext' } [FILE ...]" +#define awk_full_usage \ + "Options:\n" \ + "\t-v var=val\tassign value 'val' to variable 'var'\n" \ + "\t-F sep\t\tuse 'sep' as field separator\n" \ + "\t-f progname\tread program source from file 'progname'\n" + #define basename_trivial_usage \ "FILE [SUFFIX]" #define basename_full_usage \ @@ -217,7 +225,7 @@ #define dc_example_usage \ "$ dc 2 2 +\n" \ "4\n" \ - "$ dc 8 8 \* 2 2 + /\n" \ + "$ dc 8 8 * 2 2 + /\n" \ "16\n" \ "$ dc 0 1 and\n" \ "0\n" \ @@ -570,11 +578,11 @@ "while true ; do\n" \ " case $1 in\n" \ " -a|--a-long) echo \"Option a\" ; shift ;;\n" \ - " -b|--b-long) echo \"Option b, argument \`$2'\" ; shift 2 ;;\n" \ + " -b|--b-long) echo \"Option b, argument `$2'\" ; shift 2 ;;\n" \ " -c|--c-long)\n" \ " case "$2" in\n" \ " \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \ - " *) echo \"Option c, argument \`$2'\" ; shift 2 ;;\n" \ + " *) echo \"Option c, argument `$2'\" ; shift 2 ;;\n" \ " esac ;;\n" \ " --) shift ; break ;;\n" \ " *) echo \"Internal error!\" ; exit 1 ;;\n" \ @@ -700,6 +708,17 @@ "$ hostname\n" \ "sage \n" +#define hwclock_trivial_usage \ + "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" +#define hwclock_full_usage \ + "Query and set the hardware clock (RTC)\n\n" \ + "Options:\n" \ + "\t-r\tread hardware clock and print result\n" \ + "\t-s\tset the system time from the hardware clock\n" \ + "\t-w\tset the hardware clock to the current system time\n" \ + "\t-u\tthe hardware clock is kept in coordinated universal time\n" \ + "\t-l\tthe hardware clock is kept in local time" + #define id_trivial_usage \ "[OPTIONS]... [USERNAME]" #define id_full_usage \ @@ -733,12 +752,19 @@ #else #define USAGE_IFCONFIG_OPT_A(a) #endif +#ifdef CONFIG_FEATURE_IPV6 + #define USAGE_IPV6(a) a +#else + #define USAGE_IPV6(a) +#endif #define ifconfig_trivial_usage \ USAGE_IFCONFIG_OPT_A("[-a]") " [
]" #define ifconfig_full_usage \ "configure a network interface\n\n" \ "Options:\n" \ + USAGE_IPV6("[add
[/]]\n") \ + USAGE_IPV6("[del
[/]]\n") \ "\t[[-]broadcast [
]] [[-]pointopoint [
]]\n" \ "\t[netmask
] [dstaddr
]\n" \ USAGE_SIOCSKEEPALIVE("\t[outfill ] [keepalive ]\n") \ @@ -1123,6 +1149,13 @@ "busybox: OK\n" \ "^D\n" +#define mesg_trivial_usage \ + "mesg [y|n]" +#define mesg_full_usage \ + "mesg [Y|N], controls write access to your terminal\n" \ + "\ty\tAllow write access to your terminal.\n" \ + "\tn\tDisallow write access to your terminal.\n" + #define mkdir_trivial_usage \ "[OPTION] DIRECTORY..." #define mkdir_full_usage \ @@ -1194,7 +1227,7 @@ #define modprobe_trivial_usage \ "[FILE ...]" #define modprobe_full_usage \ - "Used for hight level module loading and unloading." + "Used for high level module loading and unloading." #define modprobe_example_usage \ "$ modprobe cdrom\n" @@ -1321,6 +1354,13 @@ "Write an unambiguous representation, octal bytes by default, of FILE\n"\ "to standard output. With no FILE, or when FILE is -, read standard input." +#define openvt_trivial_usage \ + " [ARGS...]" +#define openvt_full_usage \ + "Start a command on a new virtual terminal" +#define openvt_example_usage \ + "openvt 2 /bin/ash\n" + #ifdef CONFIG_FEATURE_SHA1_PASSWORDS #define PASSWORD_ALG_TYPES(a) a #else @@ -1329,15 +1369,15 @@ #define passwd_trivial_usage \ "[OPTION] [name]" #define passwd_full_usage \ - "CChange a user password. If no name is specified,\n" \ + "Change a user password. If no name is specified,\n" \ "changes the password for the current user.\n" \ "Options:\n" \ "\t-a\tDefine which algorithm shall be used for the password.\n" \ "\t\t\t(Choices: des, md5" \ - CONFIG_FEATURE_SHA1_PASSWORDS(", sha1") \ + PASSWORD_ALG_TYPES(", sha1") \ ")\n\t-d\tDelete the password for the specified user account.\n" \ "\t-l\tLocks (disables) the specified user account.\n" \ - "\t-u\tUnlocks (re-enables) the specified user account."; + "\t-u\tUnlocks (re-enables) the specified user account." #define pidof_trivial_usage \ "process-name [process-name ...]" @@ -1370,6 +1410,29 @@ "1 packets transmitted, 1 packets received, 0% packet loss\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\n" \ + "Options:\n" \ + "\t-c COUNT\tSend only COUNT pings.\n" \ + "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \ + "\t-q\t\tQuiet mode, only displays output at start\n" \ + "\t\t\tand when finished." +#endif +#define ping6_example_usage \ + "$ ping6 ip6-localhost\n" \ + "PING ip6-localhost (::1): 56 data bytes\n" \ + "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \ + "\n" \ + "--- ip6-localhost ping statistics ---\n" \ + "1 packets transmitted, 1 packets received, 0% packet loss\n" \ + "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" + #define pivot_root_trivial_usage \ "NEW_ROOT PUT_OLD" #define pivot_root_full_usage \ @@ -1638,6 +1701,12 @@ #else #define USAGE_REMOTE_LOG(a) #endif +#ifdef CONFIG_FEATURE_IPC_SYSLOG + #define USAGE_IPC_LOG(a) a +#else + #define USAGE_IPC_LOG(a) +#endif + #define syslogd_trivial_usage \ "[OPTION]..." #define syslogd_full_usage \ @@ -1649,7 +1718,9 @@ "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ USAGE_REMOTE_LOG( \ "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \ - "\t-L\t\tLog locally and via network logging (default is network only)") + "\t-L\t\tLog locally and via network logging (default is network only)") \ + USAGE_IPC_LOG( \ + "\n\t-C\t\tLog to a circular buffer (read the buffer using logread)") #define syslogd_example_usage \ "$ syslogd -R masterlog:514\n" \ "$ syslogd -R 192.168.1.1:601\n" @@ -1789,6 +1860,15 @@ "Options:\n" \ "\t-v\tDisplays verbose resource usage information." +#define top_trivial_usage \ + "[-d ]" +#define top_full_usage \ + "top provides an view of processor activity in real time.\n" \ + "This utility reads the status for all processes in /proc each \n" \ + "and shows the status for however many processes will fit on the screen.\n" \ + "This utility will not show processes that are started after program startup,\n" \ + "but it will show the EXIT status for and PIDs that exit while it is running." + #define touch_trivial_usage \ "[-c] FILE [FILE ...]" #define touch_full_usage \ @@ -1856,6 +1936,21 @@ "$ tty\n" \ "/dev/tty2\n" +#define udhcpc_trivial_usage \ + "[-fqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n[-p file] [-r IP] [-s script]" +#define udhcpc_full_usage \ + "\tUsage: udhcpcd [OPTIONS]\n" \ + "\t-c,\t--clientid=CLIENTID\tClient identifier\n" \ + "\t-H,\t--hostname=HOSTNAME\tClient hostname\n" \ + "\t-f,\t--foreground\tDo not fork after getting lease\n" \ + "\t-i,\t--interface=INTERFACE\tInterface to use (default: eth0)\n" \ + "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated.\n" \ + "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \ + "\t-q,\t--quit\tQuit after obtaining lease\n" \ + "\t-r,\t--request=IP\tIP address to request (default: none)\n" \ + "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ + "\t-v,\t--version\tDisplay version" + #ifdef CONFIG_FEATURE_MOUNT_FORCE #define USAGE_MOUNT_FORCE(a) a #else @@ -1990,6 +2085,18 @@ "Options:\n" \ "\t-a\tLock all VTs" +#define watch_trivial_usage \ + "[-n ] COMMAND..." +#define watch_full_usage \ + "Executes a program periodically.\n" \ + "Options:\n" \ + "\t-n\tLoop period in seconds - default is 2." +#define watch_example_usage \ + "$ watch date\n" \ + "Mon Dec 17 10:31:40 GMT 2000\n" \ + "Mon Dec 17 10:31:42 GMT 2000\n" \ + "Mon Dec 17 10:31:44 GMT 2000" + #define watchdog_trivial_usage \ "DEV" #define watchdog_full_usage \