diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2017-02-28 11:58:14 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2017-02-28 11:58:14 +0100 |
commit | b70af833e84a78e881eea5076c2e422fb4c65b3b (patch) | |
tree | 1ec91340dbd5c83dcf84070c7549f84c8a257c84 | |
parent | 34b52450c51fc8803c2ba6f71c8de59e8642bdda (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.c | 3 |
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: |