From 230c75dfce6576f56448b761a5ee84e7e7b1956e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 10 Feb 2001 11:58:09 +0000 Subject: add step summary. remove steps configureTimezone and configurePrinter --- perl-install/timezone.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'perl-install/timezone.pm') diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 96fb0510e..cd0486138 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -17,11 +17,12 @@ sub getTimeZones { @l; } -sub read ($) { - my ($f) = @_; - my %t = getVarsFromSh($f) or die "cannot open file $f: $!"; +sub read { + my ($prefix) = @_; + my $f = "$prefix/etc/sysconfig/clock"; + my %t = getVarsFromSh($f) or return; - ("timezone", $t{ZONE}, "UTC", text2bool($t{UTC})); + (timezone => $t{ZONE}, UTC => text2bool($t{UTC})); } sub write { -- cgit v1.2.1