From 065edfd9fcfca0b600f50e242882d6e0716c03ac Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 28 Aug 2003 11:34:23 +0000 Subject: detect a laptop if cpu name contains "mobile" as many recent laptops are in that case (in case other means would fail) --- perl-install/detect_devices.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 4747667a3..a8c2d2d39 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -593,7 +593,8 @@ sub isLaptop() { hasPCMCIA() || (matching_desc('C&T.*655[45]\d') || matching_desc('C&T.*68554') || matching_desc('Neomagic.*Magic(Media|Graph)') || matching_desc('ViRGE.MX') || matching_desc('S3.*Savage.*[IM]X') || - matching_desc('ATI.*(Mobility|LT)')); + matching_desc('ATI.*(Mobility|LT)')) + || cat_('/proc/cpuinfo') =~ /\bmobile\b/i; } sub usbMice() { grep { $_->{media_type} =~ /\|Mouse/ && $_->{driver} !~ /Tablet:wacom/ || -- cgit v1.2.1