summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-16 14:23:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-16 14:23:46 +0000
commit94b3d991f8bdadf1519c556e3b8e02a0f1816b8a (patch)
tree637779da59c867910732a2c343e003bc8826131f /perl-install/modules.pm
parent7614bf7ac9b6163f47b9492d013aba6ed71319af (diff)
downloaddrakx-94b3d991f8bdadf1519c556e3b8e02a0f1816b8a.tar
drakx-94b3d991f8bdadf1519c556e3b8e02a0f1816b8a.tar.gz
drakx-94b3d991f8bdadf1519c556e3b8e02a0f1816b8a.tar.bz2
drakx-94b3d991f8bdadf1519c556e3b8e02a0f1816b8a.tar.xz
drakx-94b3d991f8bdadf1519c556e3b8e02a0f1816b8a.zip
update ppc kernel modules detection & loading
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index e2b2e363c..bacc9a955 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -125,11 +125,13 @@ sub load_category {
if_(arch() !~ /ppc/, 'parport_pc', 'imm', 'ppa'),
if_(detect_devices::usbStorage(), 'usb-storage'),
),
- if_(arch() =~ /ppc/,
- if_($category =~ /scsi/, 'mesh', 'mac53c94'),
+ arch() =~ /ppc/ ? (
+ if_($category =~ /scsi/,
+ if_(detect_devices::has_mesh(), 'mesh'),
+ if_(detect_devices::has_53c94(), 'mac53c94'),
+ ),
if_($category =~ /net/, 'bmac', 'gmac', 'mace', 'airport'),
- if_($category =~ /sound/, 'dmasound_pmac'),
- ),
+ ) : (),
);
grep {
$o_wait_message->($_->{description}, $_->{driver}) if $o_wait_message;
@@ -148,6 +150,9 @@ sub probe_category {
my @modules = category2modules($category);
+ if_($category =~ /sound/ && arch() =~ /ppc/ && detect_devices::get_mac_model() !~ /IBM/,
+ { driver => 'snd-powermac', description => 'Macintosh built-in' },
+ ),
grep {
if ($category eq 'network/isdn') {
my $b = $_->{driver} =~ /ISDN:([^,]*),?([^,]*)(?:,firmware=(.*))?/;