hostnamed: SMBIOS 3.0 knows the "tablet" form factor, add support for it

This commit is contained in:
Lennart Poettering 2015-12-02 20:32:58 +01:00
parent 5449f1e331
commit f3f4f0086e
1 changed files with 6 additions and 2 deletions

View File

@ -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;