diff options
author | Simon Rettberg | 2019-03-20 11:32:08 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-20 11:32:08 +0100 |
commit | 012732b93bf547c87077b8597b3803abd8ea79bc (patch) | |
tree | a8d783ce0053418fc565b35c1a800f04e341d2a8 /core/modules/hardware-stats/data/opt/openslx | |
parent | [kernel-vanilla] Update to 4.19.30 (diff) | |
download | mltk-012732b93bf547c87077b8597b3803abd8ea79bc.tar.gz mltk-012732b93bf547c87077b8597b3803abd8ea79bc.tar.xz mltk-012732b93bf547c87077b8597b3803abd8ea79bc.zip |
[hardware-stats] Filter a few more bogus system model names
Diffstat (limited to 'core/modules/hardware-stats/data/opt/openslx')
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats index 3b4467fb..a32dcd91 100755 --- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats +++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats @@ -226,7 +226,7 @@ echo "SMART: $OVERALL - $REALLOC reallocated, $PENDING pending" dmidec() { local RETVAL=$(dmidecode "$@" 2>/dev/null | grep -v '^#' | grep -v '^Invalid' | sed 's/\s\s*/ /g;s/^ //;s/ $//') case "$RETVAL" in - ""|*"Product Name"*|*"be filled"*|"unknown"|*"product name"*) + ""|*"Product Name"*|*"be filled"*|"unknown"|*"efault string"*|*"efault String"*|*"product name"*|*"anufacturer"*|*"ystem model"*) RETVAL="Unknown" ;; esac |