Commit ff07853a authored by clewsy's avatar clewsy

Fixed raspberry pi temperature detection.

parent 16a9eccc
......@@ -120,7 +120,7 @@ if [[ -n "$GET_L_LIVE_INFO" || -n "$GET_ALL_INFO" ]]; then
done
fi
fi
if [ "${FOUND_CORE_TEMP}" = "0" ] && [ $(cat /sys/class/thermal/thermal_zone0/temp &> /dev/null) ]; then ## Sensors is not available or returned no temps, but temp file is present (likely raspberry pi) so use that to show temperature.
if [ "${FOUND_CORE_TEMP}" = "0" ] && [ -f /sys/class/thermal/thermal_zone0/temp ]; then ## Sensors is not available or returned no temps, but temp file is present (likely raspberry pi) so use that to show temperature.
###############################
## Print available core temp - raspberry pi.
RAW_CORE_TEMP=$(cat /sys/class/thermal/thermal_zone0/temp) ## File contains integer value equal to 1000*temperature
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment