summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-08-01 10:48:27 +0000
committerThierry Vignaud <tv@mageia.org>2011-08-01 10:48:27 +0000
commit22ca970e33e03854a5f3364ac33267d5eff81ce4 (patch)
treea524fafb2551e593f0daa31b10e0378ea3f24ea3 /perl-install/detect_devices.pm
parent52f816ab4fa963ffe3ff66333162f933b899fcbf (diff)
downloaddrakx-22ca970e33e03854a5f3364ac33267d5eff81ce4.tar
drakx-22ca970e33e03854a5f3364ac33267d5eff81ce4.tar.gz
drakx-22ca970e33e03854a5f3364ac33267d5eff81ce4.tar.bz2
drakx-22ca970e33e03854a5f3364ac33267d5eff81ce4.tar.xz
drakx-22ca970e33e03854a5f3364ac33267d5eff81ce4.zip
(hasCPUFreq) detect machines needing cpufreq
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 2 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() }