summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-07-03 13:25:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-07-03 13:25:40 +0000
commitefd1a3220085f5317b8daac3372b28b79381c5c9 (patch)
tree903b768355aae9578ebd3b46206f766eae09c772 /perl-install/install_any.pm
parentdedeabe506d093314b7be2e03fd046e4d5f492fa (diff)
downloaddrakx-efd1a3220085f5317b8daac3372b28b79381c5c9.tar
drakx-efd1a3220085f5317b8daac3372b28b79381c5c9.tar.gz
drakx-efd1a3220085f5317b8daac3372b28b79381c5c9.tar.bz2
drakx-efd1a3220085f5317b8daac3372b28b79381c5c9.tar.xz
drakx-efd1a3220085f5317b8daac3372b28b79381c5c9.zip
add ntp handling
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 6fb0f38d2..b8c2f9251 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -308,7 +308,10 @@ sub preConfigureTimezone {
add2hash($o->{timezone}, { timezone::read($o->{prefix}) }) if $o->{isUpgrade};
$o->{timezone}{timezone} ||= timezone::bestTimezone(lang::lang2text($o->{lang}));
- add2hash_($o->{timezone}, { UTC => $::expert && !grep { isFat($_) || isNT($_) } @{$o->{fstab}} });
+
+ my $utc = $::expert && !grep { isFat($_) || isNT($_) } @{$o->{fstab}};
+ my $ntp = timezone::ntp_server($o->{prefix});
+ add2hash_($o->{timezone}, { UTC => $utc, ntp => $ntp });
}
sub setPackages {