mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-26 20:38:20 +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
@@ -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