From: David Herrmann Date: Tue, 28 Feb 2017 20:57:58 +0000 (+0100) Subject: hostname: detect detachable dmi chassis type (#5489) X-Git-Tag: v233~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4227dbb452003d17877a9b23d191dc5ccc53138;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index a8df3dd2edd..fe0aa00efbe 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"; }