diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:08:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:08:24 +0000 |
commit | 3b3ab1b644c619846971a5c56d5aa7d56a251275 (patch) | |
tree | c30734cadcf0423aac73cb7d40b4bdcf52182d0f /perl-install/modules.pm | |
parent | 0ca33a5bc05e0748ef07f488f721091afddf5631 (diff) | |
download | drakx-3b3ab1b644c619846971a5c56d5aa7d56a251275.tar drakx-3b3ab1b644c619846971a5c56d5aa7d56a251275.tar.gz drakx-3b3ab1b644c619846971a5c56d5aa7d56a251275.tar.bz2 drakx-3b3ab1b644c619846971a5c56d5aa7d56a251275.tar.xz drakx-3b3ab1b644c619846971a5c56d5aa7d56a251275.zip |
(when_load): move the alias sound to when_load, don't check ppc as it
could be used for non-ppc
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 3d753830c..940dd45b0 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -428,6 +428,10 @@ sub when_load { if ($type =~ /\bscsi\b/ || $type eq $type_aliases{scsi}) { add_alias('scsi_hostadapter', $name), eval { load('sd_mod') }; } + if ($type eq 'sound') { + #- mainly for ppc + add_alias('sound-slot-0', $name); + } if ($name =~ /^snd-card-/) { load('snd-pcm-oss', 'prereq'); } @@ -455,11 +459,6 @@ sub load { if ($type eq 'net') { add_alias($_, $name) foreach difference2([ detect_devices::getNet() ], \@netdev); } - - if ($type eq 'sound' && arch() =~ /ppc/) { - add_alias($type, $name); - } - when_load($name, $type, @options); } sub load_multi { |