From 1cd044549531ef1c4016ec3c60652dad95b1617f Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Sun, 21 Jul 2002 16:50:49 +0000 Subject: Initial checkin of a very primitive hwclock replacement --- include/applets.h | 3 +++ include/usage.h | 11 +++++++++++ 2 files changed, 14 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index b6397a6..6b8bce7 100644 --- a/include/applets.h +++ b/include/applets.h @@ -218,6 +218,9 @@ #ifdef CONFIG_HUSH APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_HWCLOCK + APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_ID APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 87678f5..b7b1ac6 100644 --- a/include/usage.h +++ b/include/usage.h @@ -700,6 +700,17 @@ "$ hostname\n" \ "sage \n" +#define hwclock_trivial_usage \ + "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" +#define hwclock_full_usage \ + "Query and set the hardware clock (RTC)\n\n" \ + "Options:\n" \ + "\t-r\tread hardware clock and print result\n" \ + "\t-s\tset the system time from the hardware clock\n" \ + "\t-w\tset the hardware clock to the current system time\n" \ + "\t-u\tthe hardware clock is kept in coordinated universal time\n" \ + "\t-l\tthe hardware clock is kept in local time" + #define id_trivial_usage \ "[OPTIONS]... [USERNAME]" #define id_full_usage \ -- cgit v1.1