mirror of
https://github.com/armbian/build.git
synced 2025-08-11 21:56:58 +02:00
[ mvebu ] Put back Armada temperature tweak in motd
This commit is contained in:
parent
2e3a338d48
commit
b3dd4e9d9b
@ -45,7 +45,10 @@ function getboardtemp() {
|
||||
# Allwinner legacy kernels output degree C
|
||||
board_temp=${raw_temp}
|
||||
else
|
||||
board_temp=$(awk '{printf("%d",$1/1000)}' <<<${raw_temp})
|
||||
# Tweak for Marvell Armada error in the default value of Tc trim (Errata #132698)
|
||||
grep -qi Armada /proc/cpuinfo && \
|
||||
board_temp=$(( $(awk '{printf("%d",$1/1000)}' <<<${raw_temp}) - 20 )) || \
|
||||
board_temp=$(awk '{printf("%d",$1/1000)}' <<<${raw_temp})
|
||||
fi
|
||||
elif [ -f /etc/armbianmonitor/datasources/pmictemp ]; then
|
||||
# fallback to PMIC temperature
|
||||
|
Loading…
Reference in New Issue
Block a user