diff options
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 3cded4dc1..511db03ba 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -360,9 +360,8 @@ sub pack_passwd { sub get_autologin { my ($o) = @_; my %l = getVarsFromSh("$::prefix/etc/sysconfig/autologin"); - $o->{autologin} ||= text2bool($l{AUTOLOGIN}) && $l{USER}; - %l = getVarsFromSh("$::prefix/etc/sysconfig/desktop"); - $o->{desktop} ||= $l{DESKTOP}; + my %desktop = getVarsFromSh("$::prefix/etc/sysconfig/desktop"); + { autologin => text2bool($l{AUTOLOGIN}) && $l{USER}, desktop => $desktop{DESKTOP} }; } sub set_autologin { |