diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-08-28 11:34:23 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-08-28 11:34:23 +0000 |
commit | 065edfd9fcfca0b600f50e242882d6e0716c03ac (patch) | |
tree | 5eb5163fba75c96d2ed8309f6aeb0adceb1e9dcd /perl-install/detect_devices.pm | |
parent | 4c63c45cd3c75aa808149d68d0e01740ad8cd03d (diff) | |
download | drakx-backup-do-not-use-065edfd9fcfca0b600f50e242882d6e0716c03ac.tar drakx-backup-do-not-use-065edfd9fcfca0b600f50e242882d6e0716c03ac.tar.gz drakx-backup-do-not-use-065edfd9fcfca0b600f50e242882d6e0716c03ac.tar.bz2 drakx-backup-do-not-use-065edfd9fcfca0b600f50e242882d6e0716c03ac.tar.xz drakx-backup-do-not-use-065edfd9fcfca0b600f50e242882d6e0716c03ac.zip |
detect a laptop if cpu name contains "mobile" as many recent laptops are in that case (in case other means would fail)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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/ || |