mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-28 09:08:39 +00:00
Marvell armada is running on higher temp
This commit is contained in:
parent
3c0cdf1d89
commit
92de799c4f
1 changed files with 4 additions and 1 deletions
|
@ -135,7 +135,10 @@ display "Memory usage" "$memory_usage" "10" "0" " %" " of $memory_total""Mb"
|
||||||
display "Swap usage" "$swap_usage" "10" "0" " %" " of $swap_total""Mb"
|
display "Swap usage" "$swap_usage" "10" "0" " %" " of $swap_total""Mb"
|
||||||
echo "" # fixed newline
|
echo "" # fixed newline
|
||||||
a=0;b=0;c=0
|
a=0;b=0;c=0
|
||||||
display "CPU temp" "$board_temp" "50" "0" "°C" "" ; a=$?
|
# exception for marvell armada
|
||||||
|
red_limit="40"
|
||||||
|
[[ "$(cat /proc/cpuinfo | grep Marvell)" != "" ]] && red_limit="70"
|
||||||
|
display "CPU temp" "$board_temp" "$red_limit" "0" "°C" "" ; a=$?
|
||||||
display "HDD temp" "$hdd_temp" "50" "0" "°C" "" ; b=$?
|
display "HDD temp" "$hdd_temp" "50" "0" "°C" "" ; b=$?
|
||||||
display "Ambient temp" "$amb_temp" "40" "0" "°C" "" ; c=$?
|
display "Ambient temp" "$amb_temp" "40" "0" "°C" "" ; c=$?
|
||||||
(( ($a+$b+$c) >0 )) && echo "" # new line only if some value is displayed
|
(( ($a+$b+$c) >0 )) && echo "" # new line only if some value is displayed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue