mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 10:41:46 -04:00
9 lines
305 B
Bash
Executable file
9 lines
305 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"
|