hostname: detect detachable dmi chassis type (#5489)

Detect the 'Detachable' dmi chassis type properly. Use the new
'convertible' chassis class of hostnamed, instead of returning the
generic 'computer' chassis class.
This commit is contained in:
David Herrmann 2017-02-28 21:57:58 +01:00 committed by Lennart Poettering
parent a6f8786a56
commit b4227dbb45

View file

@ -202,6 +202,7 @@ static const char* fallback_chassis(void) {
return "tablet";
case 0x1F: /* Convertible */
case 0x20: /* Detachable */
return "convertible";
}