diff options
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 2b798ddd9..ceaa1db64 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -335,18 +335,20 @@ sub read_already_loaded { sub when_load { my ($name, @options) = @_; - my $category = module2category($name); - if ($category =~ m,disk/(scsi|hardware_raid|usb),) { - add_probeall('scsi_hostadapter', $name); - eval { load('sd_mod') }; - } load('snd-pcm-oss') if $name =~ /^snd-/; - add_alias('sound-slot-0', $name) if $category =~ /sound/; add_alias('ieee1394-controller', $name) if member($name, 'ohci1394'); add_probeall('usb-interface', $name) if $name =~ /usb-[uo]hci/ || $name eq 'ehci-hcd'; $conf{$name}{options} = join " ", @options if @options; + + if (my $category = module2category($name)) { + if ($category =~ m,disk/(scsi|hardware_raid|usb),) { + add_probeall('scsi_hostadapter', $name); + eval { load('sd_mod') }; + } + add_alias('sound-slot-0', $name) if $category =~ /sound/; + } } sub cz_file { |