From b4227dbb452003d17877a9b23d191dc5ccc53138 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Tue, 28 Feb 2017 21:57:58 +0100 Subject: 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. --- src/hostname/hostnamed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index a8df3dd2ed..fe0aa00efb 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -202,6 +202,7 @@ static const char* fallback_chassis(void) { return "tablet"; case 0x1F: /* Convertible */ + case 0x20: /* Detachable */ return "convertible"; } -- cgit v1.2.3-54-g00ecf