diff options
author | Robert Griebl <griebl@gmx.de> | 2002-07-21 16:50:49 +0000 |
---|---|---|
committer | Robert Griebl <griebl@gmx.de> | 2002-07-21 16:50:49 +0000 |
commit | 1cd044549531ef1c4016ec3c60652dad95b1617f (patch) | |
tree | d552f7d94cac8240a89a5e498b73c0c60299de2c /include | |
parent | fc78b795758ad04caeadfbb2bbb75e6cefa03785 (diff) | |
download | busybox-1cd044549531ef1c4016ec3c60652dad95b1617f.tar.gz |
Initial checkin of a very primitive hwclock replacement
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index b6397a656..6b8bce7e0 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 87678f5e9..b7b1ac65d 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 \ |