diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-11-29 13:27:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-11-29 13:27:36 +0000 |
commit | 044b26d67ffc8414b03db679effecbdb68c3be1b (patch) | |
tree | 19436ab58dec022dacc3600124e828825f4666fd /perl-install | |
parent | 2e04a06a7cc6b272138d947e440929831e987265 (diff) | |
download | drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.gz drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.bz2 drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.xz drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.zip |
better support for DELL laptops (inspirated from drivers/char/i8k.c's audit)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_any.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 4c27f3ffd..afd3e086d 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -648,6 +648,10 @@ sub setDefaultPackages { push @{$o->{default_packages}}, "mdadm" if !is_empty_array_ref($o->{all_hds}{raids}); push @{$o->{default_packages}}, "lvm2" if !is_empty_array_ref($o->{all_hds}{lvms}); push @{$o->{default_packages}}, "alsa", "alsa-utils" if any { $o->{modules_conf}->get_alias("sound-slot-$_") =~ /^snd-/ } 0 .. 4; + my ($dmi) = grep { $_->{name} eq 'System' } detect_devices::dmidecode(); + if ($dmi->{Manufacturer} eq "Dell Computer" && member($dmi->{'Product Name'}, qw(Inspiron Latitude))) { + push @{$o->{default_packages}}, "i8kutils" + } push @{$o->{default_packages}}, "grub" if isLoopback(fs::get::root($o->{fstab})); push @{$o->{default_packages}}, uniq(grep { $_ } map { fs::format::package_needed_for_partition_type($_) } @{$o->{fstab}}); |