summaryrefslogtreecommitdiffstats
path: root/remote/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-07 10:19:28 +0100
committerSimon Rettberg2016-01-07 10:19:28 +0100
commitbf23126cca2fed23c4433dfd1edc0a4a3bec9a75 (patch)
tree76e907d2d6c90d4c035870fc75e1360194c84c2d /remote/modules/hardware-stats
parent[busybox] enable 'who' (diff)
downloadtm-scripts-bf23126cca2fed23c4433dfd1edc0a4a3bec9a75.tar.gz
tm-scripts-bf23126cca2fed23c4433dfd1edc0a4a3bec9a75.tar.xz
tm-scripts-bf23126cca2fed23c4433dfd1edc0a4a3bec9a75.zip
[hardware-stats] Fix system manufacturer
Diffstat (limited to 'remote/modules/hardware-stats')
-rwxr-xr-xremote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index 2b54e3e7..6c0b667b 100755
--- a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -138,11 +138,12 @@ dmidec() {
echo "$MODEL"
}
MODEL=$(dmidec -s system-product-name)
+MANUF=$(dmidec -s system-manufacturer)
# Try fallback to baseboard
if [ "$MODEL" = "Unknown" ]; then
MODEL=$(dmidec -s baseboard-product-name)
+ MANUF=$(dmidec -s baseboard-manufacturer)
fi
-MANUF=$(dmidec -s baseboard-manufacturer)
if [ "$MANUF" != "Unknown" ]; then
MODEL="$MODEL ($MANUF)"