diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-28 18:28:20 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-28 18:28:20 +0000 |
commit | 1f5e05396d83bdd1362aa1b86e1ac82381507cf8 (patch) | |
tree | 93102918326f0d0fc57011c1b8c79d83239e201b /perl-install/detect_devices.pm | |
parent | d1574a56ec08ec025bc78681fcf03e4e17839484 (diff) | |
download | drakx-1f5e05396d83bdd1362aa1b86e1ac82381507cf8.tar drakx-1f5e05396d83bdd1362aa1b86e1ac82381507cf8.tar.gz drakx-1f5e05396d83bdd1362aa1b86e1ac82381507cf8.tar.bz2 drakx-1f5e05396d83bdd1362aa1b86e1ac82381507cf8.tar.xz drakx-1f5e05396d83bdd1362aa1b86e1ac82381507cf8.zip |
detect as laptop systems with ACPI lid button
(i.e. if /sys/bus/acpi/devices/PNP0C0D:* exists)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 9cd990c68..192901043 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -1046,6 +1046,7 @@ sub isLaptop() { arch() =~ /ppc/ ? get_mac_model() =~ /Book/ : computer_info()->{isLaptop} + || glob_("/sys/bus/acpi/devices/PNP0C0D:*") #- ACPI lid button || (matching_desc__regexp('C&T.*655[45]\d') || matching_desc__regexp('C&T.*68554') || matching_desc__regexp('Neomagic.*Magic(Media|Graph)') || matching_desc__regexp('ViRGE.MX') || matching_desc__regexp('S3.*Savage.*[IM]X') || |