diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-02 17:54:56 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-02 17:54:56 +0000 |
commit | 5ea5e381f9840d127fe444d8eecf34be4c45d0e6 (patch) | |
tree | 9b28145ab1da87d737416775ec3f73b0a1de260c /perl-install/any.pm | |
parent | b2dd0fe8f3a0cca2f58deaa254d3639e88b7db29 (diff) | |
download | drakx-5ea5e381f9840d127fe444d8eecf34be4c45d0e6.tar drakx-5ea5e381f9840d127fe444d8eecf34be4c45d0e6.tar.gz drakx-5ea5e381f9840d127fe444d8eecf34be4c45d0e6.tar.bz2 drakx-5ea5e381f9840d127fe444d8eecf34be4c45d0e6.tar.xz drakx-5ea5e381f9840d127fe444d8eecf34be4c45d0e6.zip |
any::get_autologin() doesnt modify $o, it returns a hash
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 { |