From 1f5e05396d83bdd1362aa1b86e1ac82381507cf8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 28 Mar 2008 18:28:20 +0000 Subject: detect as laptop systems with ACPI lid button (i.e. if /sys/bus/acpi/devices/PNP0C0D:* exists) --- perl-install/detect_devices.pm | 1 + perl-install/install/NEWS | 2 ++ 2 files changed, 3 insertions(+) (limited to 'perl-install') 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 -- cgit v1.2.1