summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modules.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index cb4d2ae2e..929399c15 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -433,7 +433,11 @@ sub when_load {
add_probeall('scsi_hostadapter', $name);
eval { load('sd_mod') };
}
- add_alias('sound-slot-0', $name) if $category =~ /sound/;
+ if ($category =~ /sound/) {
+ my $sound_alias = find { /^sound-slot-[0-9]+$/ and $conf{$_}{alias} eq $module } keys %conf;
+ $sound_alias ||= 'sound-slot-0';
+ add_alias($sound_alias, $name);
+ }
}
}