summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2017-02-28 21:57:58 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-28 21:57:58 +0100
commitb4227dbb452003d17877a9b23d191dc5ccc53138 (patch)
treec28a448c46458dfa8afa1d491a1c697db2126fec
parenta6f8786a56c0acba5997e2c58d0df6c80ffde7f1 (diff)
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.
-rw-r--r--src/hostname/hostnamed.c1
1 files changed, 1 insertions, 0 deletions
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";
}