Add the -g option to ntpd
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Jun 2010 13:05:14 +0000 (15:05 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Jun 2010 13:05:14 +0000 (15:05 +0200)
This allows for setting the clock regardless of the time offset.

plugins/ntpd.c

index fa74ea8..731fa46 100644 (file)
@@ -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 */