]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: SMBIOS 3.0 knows the "tablet" form factor, add support for it
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Dec 2015 19:32:58 +0000 (20:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Dec 2015 19:32:58 +0000 (20:32 +0100)
src/hostname/hostnamed.c

index e1fbacd11bbe38628f7e2e6215ac812d338219e8..d383041d3951c6cf73fdd8c89767d18515de26a6 100644 (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;