clean up ntpclient uci
- add global section for default values - find working server from servers named in config - patches bin to support daemon git-svn-id: svn://svn.openwrt.org/openwrt/packages@12305 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
24
net/ntpclient/patches/100-daemon.patch
Normal file
24
net/ntpclient/patches/100-daemon.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: ntpclient-2007/ntpclient.c
|
||||
===================================================================
|
||||
--- ntpclient-2007.orig/ntpclient.c 2008-08-12 03:11:34.000000000 +0200
|
||||
+++ ntpclient-2007/ntpclient.c 2008-08-12 03:11:36.000000000 +0200
|
||||
@@ -614,7 +614,7 @@
|
||||
ntpc.cross_check=1;
|
||||
|
||||
for (;;) {
|
||||
- c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "st");
|
||||
+ c = getopt( argc, argv, "c:" DEBUG_OPTION "f:g:h:i:lp:q:" REPLAY_OPTION "stD");
|
||||
if (c == EOF) break;
|
||||
switch (c) {
|
||||
case 'c':
|
||||
@@ -663,6 +663,10 @@
|
||||
(ntpc.cross_check)=0;
|
||||
break;
|
||||
|
||||
+ case 'D':
|
||||
+ daemon();
|
||||
+ break;
|
||||
+
|
||||
default:
|
||||
usage(argv[0]);
|
||||
exit(1);
|
Reference in New Issue
Block a user