From: David Herrmann Date: Tue, 28 Feb 2017 10:58:14 +0000 (+0100) Subject: hostname: detect convertible dmi chassis type X-Git-Tag: v233~24^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5484%2Fhead;p=thirdparty%2Fsystemd.git 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 . --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index c02e18a654d..a8df3dd2edd 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -200,6 +200,9 @@ static const char* fallback_chassis(void) { case 0x1E: /* Tablet */ return "tablet"; + + case 0x1F: /* Convertible */ + return "convertible"; } try_acpi: