From 1dfc06422978cbae04f06f13165d2aea37fac8e1 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 24 Jun 2000 10:46:30 +0000 Subject: no_comment --- perl-install/modules.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/modules.pm') 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; } -- cgit v1.2.1