diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-03 15:55:16 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-03 15:55:16 +0000 |
commit | f9f4997bbe48ea8f7aca9884e9cc2f15298fb462 (patch) | |
tree | 288a123dd61688eb467962601908de4a078c7ea9 /perl-install/timezone.pm | |
parent | f8f0e4569bb54438ed0f1a5c5aadad8641f7a9f0 (diff) | |
download | drakx-backup-do-not-use-f9f4997bbe48ea8f7aca9884e9cc2f15298fb462.tar drakx-backup-do-not-use-f9f4997bbe48ea8f7aca9884e9cc2f15298fb462.tar.gz drakx-backup-do-not-use-f9f4997bbe48ea8f7aca9884e9cc2f15298fb462.tar.bz2 drakx-backup-do-not-use-f9f4997bbe48ea8f7aca9884e9cc2f15298fb462.tar.xz drakx-backup-do-not-use-f9f4997bbe48ea8f7aca9884e9cc2f15298fb462.zip |
write UTC setting in /etc/adjtime (#36522)
see RH #438124 and http://git.fedorahosted.org/git/anaconda.git?p=anaconda.git;a=commitdiff;h=4195005f05b87bbd75c6d9dc5ca034cceecaa4b7
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 5babf2061..b072dda3a 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -64,6 +64,12 @@ sub write { UTC => bool2text($t->{UTC}), ARC => "false", }); + + my $adjtime_file = $::prefix . '/etc/adjtime'; + my @adjtime = cat_($adjtime_file); + @adjtime or @adjtime = ("0.0 0 0.0\n", "0\n"); + $adjtime[2] = $t->{UTC} ? "UTC\n" : "LOCAL\n"; + output_p($adjtime_file, @adjtime); } sub reload_sys_clock { |