summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-09 15:23:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-09 15:23:56 +0000
commit975c4c27c0245389fedb1669bab816502f1c36f3 (patch)
treeda1eb9b0c736869fcc57bef4b7df4381ff064885 /perl-install/modules.pm
parent29dbc8c49c643d5d18f64907ca9d5104ad9cf08e (diff)
downloaddrakx-backup-do-not-use-975c4c27c0245389fedb1669bab816502f1c36f3.tar
drakx-backup-do-not-use-975c4c27c0245389fedb1669bab816502f1c36f3.tar.gz
drakx-backup-do-not-use-975c4c27c0245389fedb1669bab816502f1c36f3.tar.bz2
drakx-backup-do-not-use-975c4c27c0245389fedb1669bab816502f1c36f3.tar.xz
drakx-backup-do-not-use-975c4c27c0245389fedb1669bab816502f1c36f3.zip
no_comment
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm5
1 files changed, 4 insertions, 1 deletions
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;