summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-22 16:59:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-22 16:59:27 +0000
commit9c3ad5861dc37b0a0896fe27723cc35bcfb70c18 (patch)
tree6ad54608825108d1554289465fdd41f68269c1b2 /perl-install/harddrake
parent76c708d7ad362aaaea3416936119510c156135b2 (diff)
downloaddrakx-backup-do-not-use-9c3ad5861dc37b0a0896fe27723cc35bcfb70c18.tar
drakx-backup-do-not-use-9c3ad5861dc37b0a0896fe27723cc35bcfb70c18.tar.gz
drakx-backup-do-not-use-9c3ad5861dc37b0a0896fe27723cc35bcfb70c18.tar.bz2
drakx-backup-do-not-use-9c3ad5861dc37b0a0896fe27723cc35bcfb70c18.tar.xz
drakx-backup-do-not-use-9c3ad5861dc37b0a0896fe27723cc35bcfb70c18.zip
multiple sound cards fix: use the same index as our caller, don't
force 0
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 85f5790d9..7fc50d0ae 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -133,7 +133,7 @@ sub do_switch {
run_program::run("service alsa stop") if $old_driver =~ /^snd-/;
modules::unload($old_driver); # run_program("/sbin/modprobe -r $driver"); # just in case ...
modules::remove_module($old_driver); # completed by the next add_alias()
- modules::add_alias('sound-slot-0', $new_driver);
+ modules::add_alias('sound-slot-$::i', $new_driver);
modules::write_conf;
if ($new_driver =~ /^snd-/) {
run_program::run("service alsa start");