From efd1a3220085f5317b8daac3372b28b79381c5c9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 3 Jul 2001 13:25:40 +0000 Subject: add ntp handling --- perl-install/install_any.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/install_any.pm') 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 { -- cgit v1.2.1