From 975c4c27c0245389fedb1669bab816502f1c36f3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 9 Mar 2000 15:23:56 +0000 Subject: no_comment --- perl-install/modules.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 8092956df..8ed1be0c9 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -344,6 +344,9 @@ sub add_alias($$) { $alias .= $scsi++ || '' if $alias eq 'scsi_hostadapter'; log::l("adding alias $alias to $name"); $conf{$alias}{alias} ||= $name; + if ($alias eq "sound" && $name =~ /^snd-card-/) { + $conf{$name}{"post-install"} = "modprobe snd-pcm-oss"; + } $alias; } @@ -472,7 +475,7 @@ sub write_conf { while (my ($k, $v) = each %net) { add_alias($k, $v) } my @l = sort grep { $conf{$_}{alias} && /scsi_hostadapter/ } keys %conf; - add_alias('block-major-11', 'scsi_hostadapter'); + add_alias('block-major-11', 'scsi_hostadapter') if @l; push @l, "ide-floppy" if detect_devices::zips(); $conf{supermount}{"post-install"} = join " ; ", map { "modprobe $_" } @l if @l; -- cgit v1.2.1