summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2017-02-28 11:58:14 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2017-02-28 11:58:14 +0100
commitb70af833e84a78e881eea5076c2e422fb4c65b3b (patch)
tree1ec91340dbd5c83dcf84070c7549f84c8a257c84
parent34b52450c51fc8803c2ba6f71c8de59e8642bdda (diff)
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 <jani.nikula@intel.com>.
-rw-r--r--src/hostname/hostnamed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index c02e18a654..a8df3dd2ed 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: