Temper motd bugfix

This commit is contained in:
Igor Pecovnik 2016-11-29 22:14:16 +01:00
parent 99d50c609d
commit 7805982efb

View File

@ -140,7 +140,8 @@ fi
if [[ -n $(which temper) && $(dpkg --print-architecture) == armhf ]]; then
amb_temp=$(temper -c)
if echo $amb_temp | egrep -qv "Couldn't find the USB device"; then
amb_temp=$(echo "scale=1;${amb_temp}/1" | bc)
amb_temp=$(echo $amb_temp | awk '{print $NF}' | sed 's/C//g')
amb_temp=$(echo "scale=1;${amb_temp}/1" | bc)
else
amb_temp=""
fi