mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
amlogic: fix cputemp for AMLG12 devices
This commit is contained in:
parent
5b5c8a0cc0
commit
5421539136
@ -3,6 +3,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input)
|
||||
case $(dtsoc) in
|
||||
amlogic,g12*)
|
||||
TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone1/temp)
|
||||
;;
|
||||
*)
|
||||
TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input)
|
||||
;;
|
||||
esac
|
||||
|
||||
TEMP="$(( $TEMP / 1000 ))"
|
||||
echo "${TEMP} C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user