From 3cefc64497381e6bcf55991fa4f696483c086d92 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 5 Aug 2004 05:03:11 +0000 Subject: if ntp is used, get the new time before updating the hwclock (fix from Emmanuel Blindauer, #10537) --- perl-install/standalone/drakclock | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/drakclock') diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index a1dd5b5f5..e4a3c6253 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -116,6 +116,7 @@ $my_win->{window}->add(gtkpack_(gtkset_border_width(Gtk2::VBox->new, $::isEmbedd #verify that we have a valid hostname (thx sam) $choosed_serv =~ s/[^-a-zA-Z0-9.]//g; system("/usr/sbin/ntpdate", $choosed_serv); + update_time(); #- get the new time before updating the hwclock system("service ntpd start"); } else { if (-e $ntpdlock) { -- cgit v1.2.1