aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/dmi_util.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-10-04 17:24:54 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-11-04 15:02:12 -0800
commit11936f0c93bd0416f5cba22de18228c46864a927 (patch)
tree8cc1e1714c77f1df81bdfc1d1e72ec5a7b4098b7 /hardinfo/dmi_util.c
parent3d61921be280fab9b4a5740a8f20a65d4bd2a4cf (diff)
devices: get_motherboard() refinements
As discussed in #289: "Maybe instead of falling back separately it could try for the best from the board group and the best from the product/system group and always give <board> (<system>), perhaps with any duplicates removed." Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/dmi_util.c')
-rw-r--r--hardinfo/dmi_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hardinfo/dmi_util.c b/hardinfo/dmi_util.c
index 98c2ac72..7535f48e 100644
--- a/hardinfo/dmi_util.c
+++ b/hardinfo/dmi_util.c
@@ -32,6 +32,8 @@ static int ignore_placeholder_strings(char **pstr) {
DMI_IGNORE("System Manufacturer");
DMI_IGNORE("System Version");
DMI_IGNORE("Default String");
+ DMI_IGNORE("Rev X.0x"); /* ASUS board version nonsense */
+ DMI_IGNORE("x.x"); /* Gigabyte board version nonsense */
/*... more, I'm sure. */
return 0;
}