hostname: detect convertible dmi chassis type

Detect the 'Convertible' dmi chassis type properly. Use the new
'convertible' chassis class of hostnamed, instead of returning the
generic 'computer' chassis class.

Based on a patch by Jani Nikula <jani.nikula@intel.com>.
This commit is contained in:
David Herrmann 2017-02-28 11:58:14 +01:00
parent 34b52450c5
commit b70af833e8
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ static const char* fallback_chassis(void) {
case 0x1E: /* Tablet */
return "tablet";
case 0x1F: /* Convertible */
return "convertible";
}
try_acpi: