printenv / sum defines
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Apr 2005 23:29:24 +0000 (23:29 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Apr 2005 23:29:24 +0000 (23:29 -0000)
include/applets.h
include/usage.h

index e5b19e0eb3fdfbffbf5daa33ec63b49a75ef104e..462d918010c83f78169d4c33e624c65f38ef2cbd 100644 (file)
 #ifdef CONFIG_POWEROFF
        APPLET(poweroff, poweroff_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
 #endif
+#ifdef CONFIG_PRINTENV
+       APPLET(printenv, printenv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
 #ifdef CONFIG_PRINTF
        APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
 #endif
 #ifdef CONFIG_SULOGIN
        APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
 #endif
+#ifdef CONFIG_SUM
+       APPLET(sum, sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
 #ifdef CONFIG_SWAPONOFF
        APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
 #endif
index 128aee2f527e56e08b21cc571817be179e5f4a73..33ead14f519b918b8f55f3be09a6740a47bb885f 100644 (file)
        "Options:\n" \
        "\t-d\t\tdelay interval for shutting off."
 
+#define printenv_trivial_usage \
+       "[VARIABLES...]"
+#define printenv_full_usage \
+       "print all or part of environment\n\n" \
+       "If no environment VARIABLE specified, print them all."
+
 #define printf_trivial_usage \
        "FORMAT [ARGUMENT...]"
 #define printf_full_usage \
        "\t-h\tName of the remote host for this login.\n" \
        "\t-p\tPreserve environment."
 
+#define sum_trivial_usage \
+       "[rs] [files...]"
+#define sum_full_usage \
+       "checksum and count the blocks in a file\n\n" \
+       "Options:\n" \
+       "\t-r\tuse BSD sum algorithm (1K blocks)\n" \
+       "\t-s\tuse System V sum algorithm (512byte blocks)\n"
+
 #define swapoff_trivial_usage \
        "[OPTION] [DEVICE]"
 #define swapoff_full_usage \