#673 fix stresstest

This commit is contained in:
Christian Rotzoll
2019-06-29 16:47:30 +02:00
parent 1c2391c8d6
commit efdb5fa9fe

View File

@@ -30,7 +30,7 @@ echo "RaspiBlitz Hardwaretest v0.2" >&2
# detect hardware version of RaspberryPi
# https://www.unixtutorial.org/command-to-confirm-raspberry-pi-model
raspberryPi=${cat /proc/device-tree/model | cut -d " " -f 3 | sed 's/[^0-9]*//g'}
raspberryPi=$(cat /proc/device-tree/model | cut -d " " -f 3 | sed 's/[^0-9]*//g')
if [ ${#raspberryPi} -eq 0 ]; then
raspberryPi=0
fi