diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-08-01 10:48:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-08-01 10:48:27 +0000 |
commit | 85eb530400d95b52e1664737d53740126d2bc398 (patch) | |
tree | a524fafb2551e593f0daa31b10e0378ea3f24ea3 /perl-install | |
parent | c7320a1eae2d64fc5c01f3afd8b9be0d52096a4c (diff) | |
download | drakx-backup-do-not-use-85eb530400d95b52e1664737d53740126d2bc398.tar drakx-backup-do-not-use-85eb530400d95b52e1664737d53740126d2bc398.tar.gz drakx-backup-do-not-use-85eb530400d95b52e1664737d53740126d2bc398.tar.bz2 drakx-backup-do-not-use-85eb530400d95b52e1664737d53740126d2bc398.tar.xz drakx-backup-do-not-use-85eb530400d95b52e1664737d53740126d2bc398.zip |
(hasCPUFreq) detect machines needing cpufreq
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/detect_devices.pm | 2 | ||||
-rw-r--r-- | perl-install/install/NEWS | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index d2d6561bd..cc36dc4a7 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -1237,6 +1237,7 @@ sub matching_types() { mips_lemote => is_mips_lemote(), mips_ict => is_mips_ict(), mips_st_ls2f => is_mips_st_ls2f(), + cpufreq => hasCPUFreq(), laptop => isLaptop(), 'numpad' => hasNumpad(), 'touchpad' => hasTouchpad(), @@ -1245,6 +1246,7 @@ sub matching_types() { }; } +sub hasCPUFreq() { require cpufreq; cpufreq::get_modules() } sub hasWacom() { find { $_->{vendor} == 0x056a || $_->{driver} =~ /wacom/ } usb_probe() } sub hasTouchpad() { any { $_->{Synaptics} || $_->{ALPS} || $_->{Elantech} } getInputDevices() } sub hasNumpad() { any { $_->{Numpad} } getInputDevices() } diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 5183d67d4..1ca89a2c2 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,5 +1,6 @@ - fix bootloader entries names - detect (at least some (eg: Compaq USB numpad) (#1099) +- detect machines needing cpufreq Version 13.58 - 27 May 2011 |