diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2011-02-27 12:08:43 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2011-02-27 12:08:43 +0000 |
commit | 9fd793741725c3c1e96e9f962dff18fd693fd840 (patch) | |
tree | 14b12e08a0303859360e726e6f665fb66819fb57 | |
parent | 3a7785f6df16d0e628453cff2e78a60d3d5946db (diff) | |
download | lm-sensors-9fd793741725c3c1e96e9f962dff18fd693fd840.tar.gz |
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
-rw-r--r-- | CHANGES | 1 | ||||
-rwxr-xr-x | prog/detect/sensors-detect | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 8ea2cecf..ca713ff4 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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; } |