summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-02 20:32:58 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-02 20:32:58 +0100
commitf3f4f0086ea45ce82658d5fd8a9a36f25685043f (patch)
treed44a7b41e7574d0f6c73c0cbc488a924083c1342 /src/hostname
parent5449f1e3312e5467ce321fc2d7aa16a0ce0c60d2 (diff)
hostnamed: SMBIOS 3.0 knows the "tablet" form factor, add support for it
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamed.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index e1fbacd11b..d383041d39 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -212,10 +212,10 @@ try_dmi:
unreliable enough, so let's not do any additional guesswork
on top of that.
- See the SMBIOS Specification 2.7.1 section 7.4.1 for
+ See the SMBIOS Specification 4.0 section 7.4.1 for
details about the values listed here:
- http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.1.pdf
+ https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.0.0.pdf
*/
switch (t) {
@@ -237,7 +237,11 @@ try_dmi:
case 0x11:
case 0x1C:
+ case 0x1D:
return "server";
+
+ case 0x1E:
+ return "tablet";
}
return NULL;