summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-05 05:03:11 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-05 05:03:11 +0000
commit3cefc64497381e6bcf55991fa4f696483c086d92 (patch)
treef251064725d2320218e8678f03bab9da41d7a7c2 /perl-install
parent17c81d6415891a7cb83eecafd31efd22e101119c (diff)
downloaddrakx-3cefc64497381e6bcf55991fa4f696483c086d92.tar
drakx-3cefc64497381e6bcf55991fa4f696483c086d92.tar.gz
drakx-3cefc64497381e6bcf55991fa4f696483c086d92.tar.bz2
drakx-3cefc64497381e6bcf55991fa4f696483c086d92.tar.xz
drakx-3cefc64497381e6bcf55991fa4f696483c086d92.zip
if ntp is used, get the new time before updating the hwclock
(fix from Emmanuel Blindauer, #10537)
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakclock1
1 files changed, 1 insertions, 0 deletions
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) {