mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ntpclient: Import from oldpackages, update version, copyright and license info, add pkg maintainer.
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
--- a/ntpclient.c
|
||||
+++ b/ntpclient.c
|
||||
@@ -611,7 +611,7 @@ int main(int argc, char *argv[]) {
|
||||
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':
|
||||
@@ -660,6 +660,10 @@ int main(int argc, char *argv[]) {
|
||||
(ntpc.cross_check)=0;
|
||||
break;
|
||||
|
||||
+ case 'D':
|
||||
+ daemon(0, 0);
|
||||
+ break;
|
||||
+
|
||||
default:
|
||||
usage(argv[0]);
|
||||
exit(1);
|
||||
Reference in New Issue
Block a user