mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
Merge pull request #5230 from lrusak/imx8-scripts
iMX8: add cputemp and gputemp scripts
This commit is contained in:
commit
320e1c88cc
7
projects/NXP/devices/iMX8/filesystem/usr/bin/cputemp
Executable file
7
projects/NXP/devices/iMX8/filesystem/usr/bin/cputemp
Executable 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"
|
7
projects/NXP/devices/iMX8/filesystem/usr/bin/gputemp
Executable file
7
projects/NXP/devices/iMX8/filesystem/usr/bin/gputemp
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user