From 3b3ab1b644c619846971a5c56d5aa7d56a251275 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 21 Mar 2001 18:08:24 +0000 Subject: (when_load): move the alias sound to when_load, don't check ppc as it could be used for non-ppc --- perl-install/modules.pm | 9 ++++----- 1 file 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 { -- cgit v1.2.1