summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-06-24 10:46:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-06-24 10:46:30 +0000
commit1dfc06422978cbae04f06f13165d2aea37fac8e1 (patch)
tree6272b1add0068da59fe9f58ba818e617dd7a0a29 /perl-install/modules.pm
parent2a0bbee296669686a3332e6595bc1021757249b0 (diff)
downloaddrakx-1dfc06422978cbae04f06f13165d2aea37fac8e1.tar
drakx-1dfc06422978cbae04f06f13165d2aea37fac8e1.tar.gz
drakx-1dfc06422978cbae04f06f13165d2aea37fac8e1.tar.bz2
drakx-1dfc06422978cbae04f06f13165d2aea37fac8e1.tar.xz
drakx-1dfc06422978cbae04f06f13165d2aea37fac8e1.zip
no_comment
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index cdb8483a8..5925f9df5 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -388,7 +388,7 @@ sub load {
if ($type) {
add_alias('usb-interface', $name) if $type =~ /SERIAL_USB/i;
- add_alias('scsi_hostadapter', $name), load('sd_mod') if $type eq "scsi" || $type eq $type_aliases{scsi};
+ add_alias('scsi_hostadapter', $name), load('sd_mod') if $type =~ /scsi/ || $type eq $type_aliases{scsi};
}
$conf{$name}{options} = join " ", @options if @options;
}
@@ -554,7 +554,7 @@ sub load_thiskind($;&$) {
$loaded_text{$mod} = $text;
}
- if ($type eq 'scsi') {
+ if ($type =~ /scsi/) {
#- hey, we're allowed to pci probe :) let's do a lot of probing!
#- probe for USB SCSI.
@@ -574,7 +574,7 @@ sub load_thiskind($;&$) {
}
}
my @loaded = map { $loaded_text{$_} || $_ } @{$loaded{$type} || []};
- $type eq 'scsi' and @loaded and eval { load("sd_mod") };
+ $type =~ /scsi/ and @loaded and eval { load("sd_mod") };
@loaded;
}