summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2020-12-02 14:55:21 +0100
committerFelipe Borges <felipeborges@gnome.org>2020-12-04 11:22:49 +0100
commit8723ddc7e586f953f234379578c0cc416ab7cd0d (patch)
tree67858a3324ec2027b27931001e2d805ed1ad09eb /hwdb.d
parent442bc2afee6c5f731c7b3e76ccab7301703a45a7 (diff)
downloadsystemd-8723ddc7e586f953f234379578c0cc416ab7cd0d.tar.gz
hwdb: Add dmi-id database
See #15493
Diffstat (limited to 'hwdb.d')
-rw-r--r--hwdb.d/20-dmi-id.hwdb6
-rw-r--r--hwdb.d/meson.build1
2 files changed, 7 insertions, 0 deletions
diff --git a/hwdb.d/20-dmi-id.hwdb b/hwdb.d/20-dmi-id.hwdb
new file mode 100644
index 0000000000..a614473bd9
--- /dev/null
+++ b/hwdb.d/20-dmi-id.hwdb
@@ -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
diff --git a/hwdb.d/meson.build b/hwdb.d/meson.build
index 6fcb364acd..f26e1f8576 100644
--- a/hwdb.d/meson.build
+++ b/hwdb.d/meson.build
@@ -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