aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h5
-rw-r--r--include/usage.h74
2 files changed, 59 insertions, 20 deletions
diff --git a/include/applets.h b/include/applets.h
index d52f9f034..0e4cbd5a3 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -151,7 +151,6 @@ USE_FBSPLASH(APPLET(fbsplash, _BB_DIR_SBIN, _BB_SUID_NEVER))
151USE_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, _BB_DIR_BIN, _BB_SUID_NEVER, fdflush)) 151USE_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, _BB_DIR_BIN, _BB_SUID_NEVER, fdflush))
152USE_FDFORMAT(APPLET(fdformat, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 152USE_FDFORMAT(APPLET(fdformat, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
153USE_FDISK(APPLET(fdisk, _BB_DIR_SBIN, _BB_SUID_NEVER)) 153USE_FDISK(APPLET(fdisk, _BB_DIR_SBIN, _BB_SUID_NEVER))
154//USE_FETCHMAIL(APPLET(fetchmail, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
155USE_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep)) 154USE_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep))
156USE_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find)) 155USE_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find))
157USE_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) 156USE_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE))
@@ -237,8 +236,8 @@ USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER))
237USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) 236USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER))
238USE_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER, modprobe)) 237USE_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER, modprobe))
239USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat)) 238USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat))
240USE_FEATURE_SENDMAIL_MAILX(APPLET_ODDNAME(mail, sendmail, _BB_DIR_USR_BIN, _BB_SUID_NEVER, sendmail))
241USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER)) 239USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER))
240USE_MAKEMIME(APPLET(makemime, _BB_DIR_BIN, _BB_SUID_NEVER))
242USE_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUID_NEVER)) 241USE_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUID_NEVER))
243USE_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 242USE_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
244USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum)) 243USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum))
@@ -281,6 +280,7 @@ USE_PING6(APPLET(ping6, _BB_DIR_BIN, _BB_SUID_NEVER))
281USE_PIPE_PROGRESS(APPLET(pipe_progress, _BB_DIR_BIN, _BB_SUID_NEVER)) 280USE_PIPE_PROGRESS(APPLET(pipe_progress, _BB_DIR_BIN, _BB_SUID_NEVER))
282USE_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_NEVER)) 281USE_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_NEVER))
283USE_PKILL(APPLET_ODDNAME(pkill, pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER, pkill)) 282USE_PKILL(APPLET_ODDNAME(pkill, pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER, pkill))
283USE_POPMAILDIR(APPLET(popmaildir, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
284USE_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, poweroff)) 284USE_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, poweroff))
285USE_PRINTENV(APPLET(printenv, _BB_DIR_BIN, _BB_SUID_NEVER)) 285USE_PRINTENV(APPLET(printenv, _BB_DIR_BIN, _BB_SUID_NEVER))
286USE_PRINTF(APPLET_NOFORK(printf, printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER, printf)) 286USE_PRINTF(APPLET_NOFORK(printf, printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER, printf))
@@ -295,6 +295,7 @@ USE_READLINK(APPLET(readlink, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
295USE_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 295USE_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
296USE_REALPATH(APPLET(realpath, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 296USE_REALPATH(APPLET(realpath, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
297USE_HALT(APPLET_ODDNAME(reboot, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, reboot)) 297USE_HALT(APPLET_ODDNAME(reboot, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, reboot))
298USE_REFORMIME(APPLET(reformime, _BB_DIR_BIN, _BB_SUID_NEVER))
298USE_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 299USE_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
299USE_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 300USE_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
300USE_RESIZE(APPLET(resize, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 301USE_RESIZE(APPLET(resize, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index 4ee82059e..19af3486a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1095,18 +1095,6 @@
1095 "\n -H HEADS\n" \ 1095 "\n -H HEADS\n" \
1096 "\n -S SECTORS" \ 1096 "\n -S SECTORS" \
1097 1097
1098#define fetchmail_trivial_usage \
1099 "[-w timeout] [-H [user:pass@]server[:port]] [-S] [-t] [-z] maildir [prog]"
1100#define fetchmail_full_usage "\n\n" \
1101 "Fetch content of remote mailbox to local maildir\n" \
1102 "\nOptions:" \
1103 "\n -w timeout Network timeout" \
1104 "\n -H [user:pass@]server[:port] Server" \
1105 "\n -S Use openssl connection helper for secure servers" \
1106 "\n -t Get only headers" \
1107 "\n -z Delete messages on server" \
1108 "\n prog Run 'prog <message_file>' on message delivery" \
1109
1110#define blkid_trivial_usage \ 1098#define blkid_trivial_usage \
1111 "" 1099 ""
1112#define blkid_full_usage "\n\n" \ 1100#define blkid_full_usage "\n\n" \
@@ -2378,6 +2366,16 @@
2378 "/dev/hda[0-15]\n" 2366 "/dev/hda[0-15]\n"
2379#endif 2367#endif
2380 2368
2369#define makemime_trivial_usage \
2370 "[OPTION]... [FILE]..."
2371#define makemime_full_usage "\n\n" \
2372 "Create MIME-encoded message\n" \
2373 "\nOptions:" \
2374 "\n -C Charset" \
2375 "\n -e Tranfer encoding. Ignored. base64 is assumed" \
2376 "\n" \
2377 "\nOther options are silently ignored." \
2378
2381#define man_trivial_usage \ 2379#define man_trivial_usage \
2382 "[OPTION]... [MANPAGE]..." 2380 "[OPTION]... [MANPAGE]..."
2383#define man_full_usage "\n\n" \ 2381#define man_full_usage "\n\n" \
@@ -3095,6 +3093,33 @@
3095 "\n -v Negate the matching" \ 3093 "\n -v Negate the matching" \
3096 "\n -x Match whole name (not substring)" \ 3094 "\n -x Match whole name (not substring)" \
3097 3095
3096#define popmaildir_trivial_usage \
3097 "[OPTIONS] Maildir [connection-helper ...]"
3098#define popmaildir_full_usage "\n\n" \
3099 "Fetch content of remote mailbox to local maildir\n" \
3100 "\nOptions:" \
3101 "\n -b Binary mode. Ignored" \
3102 "\n -d Debug. Ignored" \
3103 "\n -m Show used memory. Ignored" \
3104 "\n -V Show version. Ignored" \
3105 "\n -c Use tcpclient. Ignored" \
3106 "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" \
3107 "\n -s Skip authorization" \
3108 "\n -T Get messages with TOP instead with RETR" \
3109 "\n -k Keep retrieved messages on the server" \
3110 "\n -t timeout Set network timeout" \
3111 USE_FEATURE_POPMAILDIR_DELIVERY( \
3112 "\n -F \"program arg1 arg2 ...\" Filter by program. May be multiple" \
3113 "\n -M \"program arg1 arg2 ...\" Deliver by program" \
3114 ) \
3115 "\n -R size Remove old messages on the server >= size (in bytes). Ignored" \
3116 "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" \
3117 "\n -L size Do not retrieve new messages >= size (in bytes). Ignored" \
3118 "\n -H lines Type specified number of lines of a message. Ignored"
3119#define popmaildir_example_usage \
3120 "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" \
3121 "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
3122
3098#define poweroff_trivial_usage \ 3123#define poweroff_trivial_usage \
3099 "[-d delay] [-n] [-f]" 3124 "[-d delay] [-n] [-f]"
3100#define poweroff_full_usage "\n\n" \ 3125#define poweroff_full_usage "\n\n" \
@@ -3250,6 +3275,17 @@
3250 "\n -n No call to sync()" \ 3275 "\n -n No call to sync()" \
3251 "\n -f Force reboot (don't go through init)" \ 3276 "\n -f Force reboot (don't go through init)" \
3252 3277
3278#define reformime_trivial_usage \
3279 "[OPTION]... [FILE]..."
3280#define reformime_full_usage "\n\n" \
3281 "Parse MIME-encoded message\n" \
3282 "\nOptions:" \
3283 "\n -x prefix Extract content of MIME sections to files" \
3284 "\n -X prog [args] Filter content of MIME sections through prog." \
3285 "\n Must be the last option" \
3286 "\n" \
3287 "\nOther options are silently ignored." \
3288
3253#define renice_trivial_usage \ 3289#define renice_trivial_usage \
3254 "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]" 3290 "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]"
3255#define renice_full_usage "\n\n" \ 3291#define renice_full_usage "\n\n" \
@@ -3484,9 +3520,7 @@
3484#define selinuxenabled_full_usage "" 3520#define selinuxenabled_full_usage ""
3485 3521
3486#define sendmail_trivial_usage \ 3522#define sendmail_trivial_usage \
3487 "[-w timeout] [-H [user:pass@]server[:port]] [-S]\n" \ 3523 "[OPTIONS] [rcpt]..."
3488 "[-N type] [-f sender] [-F fullname] " \
3489 USE_FEATURE_SENDMAIL_MAILX("[-s subject] [-c cc-rcpt]... [-j charset] [-a attach]... [-e err-rcpt] ") "[-t] [rcpt]..."
3490#define sendmail_full_usage "\n\n" \ 3524#define sendmail_full_usage "\n\n" \
3491 "Send an email\n" \ 3525 "Send an email\n" \
3492 "\nOptions:" \ 3526 "\nOptions:" \
@@ -3498,11 +3532,15 @@
3498 "\n -F fullname Sender full name. Overrides $NAME" \ 3532 "\n -F fullname Sender full name. Overrides $NAME" \
3499 USE_FEATURE_SENDMAIL_MAILX( \ 3533 USE_FEATURE_SENDMAIL_MAILX( \
3500 "\n -s subject Subject" \ 3534 "\n -s subject Subject" \
3501 "\n -c rcpt Cc: recipient. May be multiple" \ 3535 "\n -j charset Assume charset for body and subject (" CONFIG_FEATURE_MIME_CHARSET ")" \
3502 "\n -j charset Assume charset for body and subject (" CONFIG_FEATURE_SENDMAIL_CHARSET ")" \
3503 "\n -a file File to attach. May be multiple" \ 3536 "\n -a file File to attach. May be multiple" \
3537 "\n -H \"prog args...\" Use external connection helper. E.g. openssl for secure servers" \
3538 "\n -S server[:port] Server" \
3539 ) \
3540 USE_FEATURE_SENDMAIL_MAILXX( \
3541 "\n -c rcpt Cc: recipient. May be multiple" \
3504 "\n -e rcpt Errors-To: recipient" \ 3542 "\n -e rcpt Errors-To: recipient" \
3505 ) 3543 )
3506 "\n -t Read recipients and subject from body" \ 3544 "\n -t Read recipients and subject from body" \
3507 "\n" \ 3545 "\n" \
3508 "\nOther options are silently ignored; -oi is implied" \ 3546 "\nOther options are silently ignored; -oi is implied" \