summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-11-29 16:56:51 +0000
committerThierry Vignaud <tv@mandriva.org>2007-11-29 16:56:51 +0000
commitb8d65538089da9c7b2022448569fcd918d5a5799 (patch)
tree9c4f88eb2e31049488822c47d18cd29c2e4761e0 /perl-install/detect_devices.pm
parent11975a292dc097e3ae4bcd06f0780a9dbb91f0d8 (diff)
downloaddrakx-b8d65538089da9c7b2022448569fcd918d5a5799.tar
drakx-b8d65538089da9c7b2022448569fcd918d5a5799.tar.gz
drakx-b8d65538089da9c7b2022448569fcd918d5a5799.tar.bz2
drakx-b8d65538089da9c7b2022448569fcd918d5a5799.tar.xz
drakx-b8d65538089da9c7b2022448569fcd918d5a5799.zip
(isLaptop) fix wrongly detecting some devices as laptop specific due
to too hungry regexp (#35759)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index acfaab9c7..8f2de29de 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1045,7 +1045,7 @@ sub isLaptop() {
matching_desc__regexp('Neomagic.*Magic(Media|Graph)') ||
matching_desc__regexp('ViRGE.MX') || matching_desc__regexp('S3.*Savage.*[IM]X') ||
matching_desc__regexp('Intel Corporation\|Mobile') ||
- matching_desc__regexp('ATI.*(Mobility|LT)'))
+ matching_desc__regexp('\bATI\b.*(Mobility|\bLT\b)'))
|| cat_('/proc/cpuinfo') =~ /\bmobile\b/i
|| probe_unique_name("Type") eq 'laptop'
#- ipw2100/2200/3945 are Mini-PCI (Express) adapters