Only display board temp if available.
This commit is contained in:
parent
3aaa5e7bce
commit
0746ebc593
@ -46,8 +46,9 @@ TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
|
||||
TEMP=$(echo "scale=1;${TEMP}/1000" | bc)
|
||||
fi
|
||||
|
||||
if [[ -n $TEMP ]]; then
|
||||
OUT="${OUT}- Board: ${TEMP}${CEL} "
|
||||
|
||||
fi
|
||||
|
||||
if [[ -n $TEMPER ]]; then
|
||||
OUT=$OUT"${TEMPER}${CEL} "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user