13 lines
188 B
Bash
13 lines
188 B
Bash
|
#!/bin/dash
|
|||
|
|
|||
|
crit=70
|
|||
|
|
|||
|
read -r temp </sys/class/thermal/thermal_zone0/temp
|
|||
|
temp=${temp%???}
|
|||
|
|
|||
|
if [ "$temp" -ge "$crit" ] ; then
|
|||
|
echo "${temp}°C"
|
|||
|
else
|
|||
|
echo "${temp}°C"
|
|||
|
fi
|