diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-08-21 22:46:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-08-21 22:46:33 +0000 |
commit | 918507eddaa70b3f75196802b8f905f97bd5f5b6 (patch) | |
tree | 83f5bff33a0bb5d9087fdb64ea4e8da3d5e138db /applets | |
parent | 851ce895bdf33b95ccbfc67061f8949e36fad196 (diff) | |
download | busybox-w32-918507eddaa70b3f75196802b8f905f97bd5f5b6.tar.gz busybox-w32-918507eddaa70b3f75196802b8f905f97bd5f5b6.tar.bz2 busybox-w32-918507eddaa70b3f75196802b8f905f97bd5f5b6.zip |
Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
I added the docs, and made behavior identical to the GNU version.
-Erik
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 3 | ||||
-rw-r--r-- | applets/usage.c | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index d93fc5185..d4fbb8990 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -226,6 +226,9 @@ const struct BB_applet applets[] = { | |||
226 | #ifdef BB_PWD | 226 | #ifdef BB_PWD |
227 | {"pwd", pwd_main, _BB_DIR_BIN, pwd_usage}, | 227 | {"pwd", pwd_main, _BB_DIR_BIN, pwd_usage}, |
228 | #endif | 228 | #endif |
229 | #ifdef BB_RDATE | ||
230 | {"rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage}, | ||
231 | #endif | ||
229 | #ifdef BB_REBOOT | 232 | #ifdef BB_REBOOT |
230 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, | 233 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, |
231 | #endif | 234 | #endif |
diff --git a/applets/usage.c b/applets/usage.c index eaa77cc84..7cd05c8f2 100644 --- a/applets/usage.c +++ b/applets/usage.c | |||
@@ -855,6 +855,18 @@ const char pwd_usage[] = | |||
855 | ; | 855 | ; |
856 | #endif | 856 | #endif |
857 | 857 | ||
858 | #if defined BB_RDATE | ||
859 | const char rdate_usage[] = | ||
860 | "rdate [OPTION] HOST\n" | ||
861 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
862 | "\nGet and possibly set the system date and time from a remote HOST.\n" | ||
863 | "Options:\n" | ||
864 | "\t-s\tSet the system date and time (default).\n" | ||
865 | "\t-p\tPrint the date and time.\n" | ||
866 | #endif | ||
867 | ; | ||
868 | #endif | ||
869 | |||
858 | #if defined BB_REBOOT | 870 | #if defined BB_REBOOT |
859 | const char reboot_usage[] = | 871 | const char reboot_usage[] = |
860 | "reboot\n" | 872 | "reboot\n" |