From ede737b7cfb2d86965ebde07004ede3d8c3f1ab8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 6 Jan 2010 12:27:47 +0100 Subject: ntpd: add -S PROG option. This feature is crucial for CMOS/RTC syncronization function old new delta run_script 112 278 +166 ntpd_main 779 825 +46 update_local_clock 824 858 +34 packed_usage 26518 26540 +22 ntp_init 366 371 +5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 273/0) Total: 273 bytes Signed-off-by: Denys Vlasenko --- include/usage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 8c5a2dbc5..c5707d8b4 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3226,7 +3226,7 @@ "Address: 127.0.0.1\n" #define ntpd_trivial_usage \ - "[-dnqwl] [-p PEER]..." + "[-dnqwl] [-S PROG] [-p PEER]..." #define ntpd_full_usage "\n\n" \ "NTP client/server\n" \ "\nOptions:" \ @@ -3238,6 +3238,7 @@ /* "\n -N Run at high priority" */ \ "\n -w Do not set time (only query peers), implies -n" \ "\n -l Run as server on port 123" \ + "\n -S PROG Run PROG after stepping time, stratum change, and every 11 mins" \ "\n -p PEER Obtain time from PEER (may be repeated)" \ #define od_trivial_usage \ -- cgit v1.2.3