]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add dmi-id database
authorFelipe Borges <felipeborges@gnome.org>
Wed, 2 Dec 2020 13:55:21 +0000 (14:55 +0100)
committerFelipe Borges <felipeborges@gnome.org>
Fri, 4 Dec 2020 10:22:49 +0000 (11:22 +0100)
See #15493

hwdb.d/20-dmi-id.hwdb [new file with mode: 0644]
hwdb.d/meson.build

diff --git a/hwdb.d/20-dmi-id.hwdb b/hwdb.d/20-dmi-id.hwdb
new file mode 100644 (file)
index 0000000..a614473
--- /dev/null
@@ -0,0 +1,6 @@
+# This file is part of systemd
+
+# Fix "Lenovo" capitalization in /sys/class/dmi/id/sys_vendor
+dmi:bvnLENOVO*
+    ID_SYSFS_ATTRIBUTE_MODEL=product_version
+    ID_VENDOR_FROM_DATABASE=Lenovo
index 6fcb364acdd7a3d19ab5c55b404c8064453ad40d..f26e1f8576236bcc8bfc3f9b1ed6b4d923020fed 100644 (file)
@@ -4,6 +4,7 @@
 # they are very long but quite repetitive and the parser is not very fast.
 # So we don't "test" them.
 hwdb_files_notest = files('''
+        20-dmi-id.hwdb
         20-pci-vendor-model.hwdb
         20-pci-classes.hwdb
         20-usb-vendor-model.hwdb