From 8723ddc7e586f953f234379578c0cc416ab7cd0d Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Wed, 2 Dec 2020 14:55:21 +0100 Subject: [PATCH] hwdb: Add dmi-id database See #15493 --- hwdb.d/20-dmi-id.hwdb | 6 ++++++ hwdb.d/meson.build | 1 + 2 files changed, 7 insertions(+) create mode 100644 hwdb.d/20-dmi-id.hwdb 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