summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-04-21 13:48:30 +0000
committerOlivier Blin <oblin@mandriva.com>2009-04-21 13:48:30 +0000
commit2437979b3006303a17f7cd153d78e9be0126ce05 (patch)
treed107acbdd4c426bca0210b6c04e537d3dc23f3c6 /perl-install/standalone
parent245525de2ed3ea330af6182580d981ad9519d79e (diff)
downloaddrakx-2437979b3006303a17f7cd153d78e9be0126ce05.tar
drakx-2437979b3006303a17f7cd153d78e9be0126ce05.tar.gz
drakx-2437979b3006303a17f7cd153d78e9be0126ce05.tar.bz2
drakx-2437979b3006303a17f7cd153d78e9be0126ce05.tar.xz
drakx-2437979b3006303a17f7cd153d78e9be0126ce05.zip
ensure ntp package is installed when configuring ntp
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/finish-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 2034ca255..3da4d6973 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -71,7 +71,10 @@ sub ask_timezone() {
$timezone = timezone::read();
$timezone->{timezone} = timezone::bestTimezone($locale->{country}) if $locale->{country};
any::configure_timezone($in, $timezone, 'ask_gmt', lc(get_conf('TIMEZONE')) eq 'simplified');
+
+ $in->do_pkgs->ensure_is_installed('ntp') if $timezone->{ntp};
timezone::write($timezone);
+
#- reload sys clock from hc once we know the real timezone
timezone::reload_sys_clock($timezone);
}