summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-06-25 15:05:14 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-06-25 15:05:14 +0200
commite0fac1bf948c2eaa3acf480f4efb1f3aaa2ca12a (patch)
tree7847b0abf040d62491749a9178d5680c689fb05a
parent47cd3d91cb069be8cbd6b1e72d6b33cab01e3b13 (diff)
downloadconnman-e0fac1bf948c2eaa3acf480f4efb1f3aaa2ca12a.tar.gz
connman-e0fac1bf948c2eaa3acf480f4efb1f3aaa2ca12a.tar.bz2
connman-e0fac1bf948c2eaa3acf480f4efb1f3aaa2ca12a.zip
Add the -g option to ntpd
This allows for setting the clock regardless of the time offset.
-rw-r--r--plugins/ntpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ntpd.c b/plugins/ntpd.c
index fa74ea85..731fa463 100644
--- a/plugins/ntpd.c
+++ b/plugins/ntpd.c
@@ -158,6 +158,7 @@ static int ntpdate(void)
goto error_task;
}
+ connman_task_add_argument(ntpdate->task, "-g", NULL);
connman_task_add_argument(ntpdate->task, "-q", NULL);
/* The servers are added through a temp configuration file */