From 0956eb6872117f68244dc3825a607f9892ad29fb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 27 Jul 2016 16:23:26 +0200 Subject: [hardware-stats] Add -q to dmidecode calls --- .../data/opt/openslx/scripts/systemd-hardware_stats | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'remote/modules') 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 -- cgit v1.2.3-55-g7522