summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-28 18:28:20 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-28 18:28:20 +0000
commit1f5e05396d83bdd1362aa1b86e1ac82381507cf8 (patch)
tree93102918326f0d0fc57011c1b8c79d83239e201b /perl-install
parentd1574a56ec08ec025bc78681fcf03e4e17839484 (diff)
downloaddrakx-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')
-rw-r--r--perl-install/detect_devices.pm1
-rw-r--r--perl-install/install/NEWS2
2 files changed, 3 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') ||
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 406bb7d13..46a795f05 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -12,6 +12,8 @@ Version 10.21 - 25 March 2008
- use umask=0 by default on vfat (#39315)
- root/user password:
o force the password to be utf8 (#23273)
+- detect as laptop systems with ACPI lid button
+ (i.e. if /sys/bus/acpi/devices/PNP0C0D:* exists)
Version 10.19 - 21 March 2008