Files
Arch-R/projects/Samsung/filesystem/usr/bin/cputemp
2024-07-06 13:02:07 +02:00

10 lines
303 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
# XU4 has 5x sensors so read them all and report the highest value
TEMP=$(cat /sys/devices/virtual/thermal/thermal_zone*/temp | sort -n | tail -1)
TEMP="$(($TEMP / 1000))"
echo "${TEMP} C"