summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Tkac2009-11-22 03:43:55 +0100
committerDenys Vlasenko2009-11-22 03:43:55 +0100
commitb1585064fdac138b3bd14c2b64f64c67ec08b654 (patch)
treeb632b12a9aea4953751bb1569bf9290db42c5c4d /include
parentd095fd4d95fd6241847f01e4fd674bc177310c33 (diff)
downloadbusybox-b1585064fdac138b3bd14c2b64f64c67ec08b654.zip
busybox-b1585064fdac138b3bd14c2b64f64c67ec08b654.tar.gz
ntpd: new applet by Adam Tkac. +5k.
Signed-off-by: Adam Tkac <vonsch@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 15ccf9c..a2d1e95 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -285,6 +285,7 @@ IF_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_DROP))
IF_NMETER(APPLET(nmeter, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_NSLOOKUP(APPLET(nslookup, _BB_DIR_USR_BIN, _BB_SUID_DROP))
+IF_NTPD(APPLET(ntpd, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
IF_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_DROP))
//IF_PARSE(APPLET(parse, _BB_DIR_USR_BIN, _BB_SUID_DROP))
diff --git a/include/usage.h b/include/usage.h
index eae9650..3ccf160 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3210,6 +3210,17 @@
"Name: debian\n" \
"Address: 127.0.0.1\n"
+#define ntpd_trivial_usage \
+ "[-dngl] [-p PEER]..."
+#define ntpd_full_usage "\n\n" \
+ "NTP client/server\n" \
+ "\nOptions:" \
+ "\n -d Verbose" \
+ "\n -n Do not daemonize" \
+ "\n -g Set system time even if offset is > 1000 sec" \
+ "\n -l Run as server on port 123" \
+ "\n -p PEER Obtain time from PEER (may be repeated)" \
+
#define od_trivial_usage \
"[-aBbcDdeFfHhIiLlOovXx] " IF_DESKTOP("[-t TYPE] ") "[FILE]"
#define od_full_usage "\n\n" \