iMX8: add cputemp and gputemp scripts

This commit is contained in:
Lukas Rusak 2021-03-08 16:28:00 -08:00
parent 7932f3f3c7
commit a38a6b864f
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
echo "$(( $TEMP / 1000 )) C"

View File

@ -0,0 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
TEMP="$(cat /sys/class/thermal/thermal_zone1/temp)"
echo "$(( $TEMP / 1000 )) C"