aboutsummaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h59
1 files changed, 36 insertions, 23 deletions
diff --git a/include/usage.h b/include/usage.h
index 8a1d3fa11..90dde95f0 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -573,18 +573,45 @@
573 "\n -r Delete crontab" \ 573 "\n -r Delete crontab" \
574 "\n FILE Replace crontab by FILE ('-': stdin)" \ 574 "\n FILE Replace crontab by FILE ('-': stdin)" \
575 575
576#if !ENABLE_USE_BB_CRYPT || ENABLE_USE_BB_CRYPT_SHA
577#define cryptpw_trivial_usage \ 576#define cryptpw_trivial_usage \
578 "[-a des|md5|sha256/512] [string]" 577 "[OPTIONS] [PASSWORD] [SALT]"
579#else 578/* We do support -s, we just don't mention it */
580#define cryptpw_trivial_usage \
581 "[-a des|md5] [string]"
582#endif
583#define cryptpw_full_usage "\n\n" \ 579#define cryptpw_full_usage "\n\n" \
584 "Output crypted string.\n" \ 580 "Crypt the PASSWORD using crypt(3)\n" \
585 "If string isn't supplied on cmdline, read it from stdin.\n" \
586 "\nOptions:" \ 581 "\nOptions:" \
587 "\n -a Algorithm to use (default: md5)" \ 582 USE_GETOPT_LONG( \
583 "\n -P,--password-fd=NUM Read password from fd NUM" \
584/* "\n -s,--stdin Use stdin; like -P0" */ \
585 "\n -m,--method=TYPE Encryption method TYPE" \
586 "\n -S,--salt=SALT" \
587 ) \
588 SKIP_GETOPT_LONG( \
589 "\n -P NUM Read password from fd NUM" \
590/* "\n -s Use stdin; like -P0" */ \
591 "\n -m TYPE Encryption method TYPE" \
592 "\n -S SALT" \
593 ) \
594
595/* mkpasswd is an alias to cryptpw */
596
597#define mkpasswd_trivial_usage \
598 "[OPTIONS] [PASSWORD] [SALT]"
599/* We do support -s, we just don't mention it */
600#define mkpasswd_full_usage "\n\n" \
601 "Crypt the PASSWORD using crypt(3)\n" \
602 "\nOptions:" \
603 USE_GETOPT_LONG( \
604 "\n -P,--password-fd=NUM Read password from fd NUM" \
605/* "\n -s,--stdin Use stdin; like -P0" */ \
606 "\n -m,--method=TYPE Encryption method TYPE" \
607 "\n -S,--salt=SALT" \
608 ) \
609 SKIP_GETOPT_LONG( \
610 "\n -P NUM Read password from fd NUM" \
611/* "\n -s Use stdin; like -P0" */ \
612 "\n -m TYPE Encryption method TYPE" \
613 "\n -S SALT" \
614 ) \
588 615
589#define cttyhack_trivial_usage NOUSAGE_STR 616#define cttyhack_trivial_usage NOUSAGE_STR
590#define cttyhack_full_usage "" 617#define cttyhack_full_usage ""
@@ -2618,20 +2645,6 @@
2618 "$ mknod /dev/fd0 b 2 0\n" \ 2645 "$ mknod /dev/fd0 b 2 0\n" \
2619 "$ mknod -m 644 /tmp/pipe p\n" 2646 "$ mknod -m 644 /tmp/pipe p\n"
2620 2647
2621#define mkpasswd_trivial_usage \
2622 "[OPTIONS] [PASSWORD]"
2623#define mkpasswd_full_usage "\n\n" \
2624 "Crypts the PASSWORD using crypt(3)\n" \
2625 "\nOptions:" \
2626 "\n\t-P"USE_GETOPT_LONG(", --password-fd=")"NUM\tread password from fd NUM" \
2627 "\n\t-s"USE_GETOPT_LONG(", --stdin")"\t\tuse stdin; like -P0" \
2628 "\n\t-m"USE_GETOPT_LONG(", --method=")"TYPE\tEncryption method TYPE" \
2629 "\n\t-S"USE_GETOPT_LONG(", --salt=")"SALT\t\tuse SALT"
2630
2631#define mkpasswd_example_usage \
2632 "$ mkpasswd -m md5\n" \
2633 "$ mkpasswd -l 12\n"
2634
2635#define mkswap_trivial_usage \ 2648#define mkswap_trivial_usage \
2636 "DEVICE" 2649 "DEVICE"
2637#define mkswap_full_usage "\n\n" \ 2650#define mkswap_full_usage "\n\n" \