From 5ea167189175406cc0267db0ba9edb00b27538ff Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 9 Jun 2000 11:41:34 +0000 Subject: *** empty log message *** --- perl-install/modules.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/perl-install/modules.pm b/perl-install/modules.pm index c1bdb2cfc..e3d893821 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -388,10 +388,7 @@ sub load { if ($type) { add_alias('usb-interface', $name) if $type =~ /SERIAL_USB/i; - if ($type eq "scsi" || $type eq $type_aliases{scsi}) { - add_alias('scsi_hostadapter', $name); - load("sd_mod"); - } + add_alias('scsi_hostadapter', $name) if $type eq "scsi" || $type eq $type_aliases{scsi}; } $conf{$name}{options} = join " ", @options if @options; } @@ -573,7 +570,9 @@ sub load_thiskind($;&$) { add_alias("sound", $c->[1]) if pci_probing::main::check($c->[1]); } } - map { $loaded_text{$_} || $_ } @{$loaded{$type} || []}; + my @loaded = map { $loaded_text{$_} || $_ } @{$loaded{$type} || []}; + $type eq 'scsi' and @loaded and eval { load("sd_mod") }; + @loaded; } sub pcmcia_need_config($) { -- cgit v1.2.1