summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-20 12:37:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-20 12:37:51 +0000
commite22ce2c6238ae5b238a01e7a443a782409d65126 (patch)
tree5f4b45d90c68ae0e7ece3523c7d3fa2fbee26f91 /perl-install/install_steps.pm
parent927f0695e36f024f44bed9ab406acc1dcaac1ff4 (diff)
downloaddrakx-e22ce2c6238ae5b238a01e7a443a782409d65126.tar
drakx-e22ce2c6238ae5b238a01e7a443a782409d65126.tar.gz
drakx-e22ce2c6238ae5b238a01e7a443a782409d65126.tar.bz2
drakx-e22ce2c6238ae5b238a01e7a443a782409d65126.tar.xz
drakx-e22ce2c6238ae5b238a01e7a443a782409d65126.zip
factorize and update the reading of previous security level
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index ced2cd281..41b59882e 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -918,8 +918,8 @@ sub miscellaneousBefore {
my ($o) = @_;
my %s = getVarsFromSh("$o->{prefix}/etc/sysconfig/system");
- $o->{miscellaneous}{HDPARM} ||= $s{HDPARM} if exists $s{HDPARM};
- $o->{security} ||= $s{SECURITY} if exists $s{SECURITY};
+ $o->{miscellaneous}{HDPARM} = $s{HDPARM} if exists $s{HDPARM};
+ $o->{security} = any::get_secure_level($o->{prefix}) || $o->{security};
add2hash_($o->{miscellaneous} ||= {}, { numlock => !detect_devices::isLaptop() });
}