From 918507eddaa70b3f75196802b8f905f97bd5f5b6 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 21 Aug 2000 22:46:33 +0000 Subject: Added the 'rdate' command, thanks to Sterling Huxley . I added the docs, and made behavior identical to the GNU version. -Erik --- applets/busybox.c | 3 +++ applets/usage.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) (limited to 'applets') diff --git a/applets/busybox.c b/applets/busybox.c index d93fc51..d4fbb89 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -226,6 +226,9 @@ const struct BB_applet applets[] = { #ifdef BB_PWD {"pwd", pwd_main, _BB_DIR_BIN, pwd_usage}, #endif +#ifdef BB_RDATE + {"rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage}, +#endif #ifdef BB_REBOOT {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, #endif diff --git a/applets/usage.c b/applets/usage.c index eaa77cc..7cd05c8 100644 --- a/applets/usage.c +++ b/applets/usage.c @@ -855,6 +855,18 @@ const char pwd_usage[] = ; #endif +#if defined BB_RDATE +const char rdate_usage[] = + "rdate [OPTION] HOST\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nGet and possibly set the system date and time from a remote HOST.\n" + "Options:\n" + "\t-s\tSet the system date and time (default).\n" + "\t-p\tPrint the date and time.\n" +#endif + ; +#endif + #if defined BB_REBOOT const char reboot_usage[] = "reboot\n" -- cgit v1.1