summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorzezinho <lists.jjorge@free.fr>2018-04-02 10:28:47 +0200
committerzezinho <lists.jjorge@free.fr>2018-04-02 10:28:47 +0200
commit2bd349e099e93bf2598a31ae169166b86c7c87fc (patch)
treec53a59d17007547aba31b302a283632a810d7018 /perl-install/standalone
parent776fdce273aec292dd8a8361c027bd99592e7d3f (diff)
downloaddrakx-2bd349e099e93bf2598a31ae169166b86c7c87fc.tar
drakx-2bd349e099e93bf2598a31ae169166b86c7c87fc.tar.gz
drakx-2bd349e099e93bf2598a31ae169166b86c7c87fc.tar.bz2
drakx-2bd349e099e93bf2598a31ae169166b86c7c87fc.tar.xz
drakx-2bd349e099e93bf2598a31ae169166b86c7c87fc.zip
As ntpdate is being deprecated, Adrien Guichard gave this patch to use
ntpq in drakclock. MGA#22850
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakclock2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock
index ed0ce940e..e7234c728 100755
--- a/perl-install/standalone/drakclock
+++ b/perl-install/standalone/drakclock
@@ -129,7 +129,7 @@ $my_win->{window}->add(
$sync_ok = !system('chronyc', 'waitsync', '30', '0.1');
system('systemctl', 'stop', "$ntpd.service") if !$sync_ok;
} else {
- $sync_ok = !system('/usr/sbin/ntpdate', $choosed_serv);
+ $sync_ok = !system('/usr/sbin/ntpd', '-gqc', '/dev/null', $choosed_serv);
system('systemctl', 'start', "$ntpd.service") if $sync_ok;
}
if ($sync_ok) {