Count DMI chassis type 8 as a laptop. Reported by Francis Moreau.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5936 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2011-02-27 12:08:43 +00:00
1 parent 17aba10bf3
commit f561412fbd
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -2730,8 +2730,8 @@ sub dmi_match
sub is_laptop
{
return 0 unless $dmi{chassis_type};
return 1 if $dmi{chassis_type} =~ m/(Laptop|Notebook|Hand Held)/i;
return 1 if $dmi{chassis_type} =~ m/^(9|10|11|14)$/;
return 1 if $dmi{chassis_type} =~ m/(Portable|Laptop|Notebook|Hand Held)/i;
return 1 if $dmi{chassis_type} =~ m/^(8|9|10|11|14)$/;
return 0;
}