mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
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:
1 parent
17aba10bf3
commit
f561412fbd
2 files changed
+3
-2
No files matched your search
@@ -30,6 +30,7 @@ SVN HEAD
|
||||
Add detection of AMD family 12h and 14h thermal sensors
|
||||
Add detection of EMC6D103S
|
||||
Add detection of National Semiconductor LM75A
|
||||
Count DMI chassis type 8 as a laptop
|
||||
|
||||
3.2.0 (2010-10-10)
|
||||
libsensors: Increase MAX_SENSORS_PER_TYPE to 24
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user