diff options
author | Simon Rettberg | 2016-07-27 16:23:26 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-07-27 16:23:26 +0200 |
commit | 0956eb6872117f68244dc3825a607f9892ad29fb (patch) | |
tree | ad83e99bed4e0d5c13804ef377de241ee750f7b5 | |
parent | [dnbd3] fix missing post_copy ... (diff) | |
download | tm-scripts-0956eb6872117f68244dc3825a607f9892ad29fb.tar.gz tm-scripts-0956eb6872117f68244dc3825a607f9892ad29fb.tar.xz tm-scripts-0956eb6872117f68244dc3825a607f9892ad29fb.zip |
[hardware-stats] Add -q to dmidecode calls
-rwxr-xr-x | remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 10 |
1 files changed, 5 insertions, 5 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 eba9c287..4227070f 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 @@ -40,7 +40,7 @@ fi MAC=${BOOTIF:3} # 2) Get machine UUID, with fallback to MAC address if it fails for some reason -UUID=$(dmidecode -s system-uuid | head -n 1) +UUID=$(dmidecode -q -s system-uuid | head -n 1) if [ "${#UUID}" -ne "36" ]; then echo "Determined UUID (${UUID}) has not expected length of 36, falling back to MAC..." UUID="000000000000000-$BOOTIF" @@ -151,12 +151,12 @@ dmidec() { esac echo "$LMODEL" } -MODEL=$(dmidec -s system-product-name) -MANUF=$(dmidec -s system-manufacturer) +MODEL=$(dmidec -q -s system-product-name) +MANUF=$(dmidec -q -s system-manufacturer) # Try fallback to baseboard if [ "$MODEL" = "Unknown" ]; then - MODEL=$(dmidec -s baseboard-product-name) - MANUF=$(dmidec -s baseboard-manufacturer) + MODEL=$(dmidec -q -s baseboard-product-name) + MANUF=$(dmidec -q -s baseboard-manufacturer) fi if [ "$MANUF" != "Unknown" ]; then |