From 9c3ad5861dc37b0a0896fe27723cc35bcfb70c18 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 22 Aug 2002 16:59:27 +0000 Subject: multiple sound cards fix: use the same index as our caller, don't force 0 --- perl-install/harddrake/sound.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.1