diff --git a/projects/Amlogic/filesystem/usr/bin/cputemp b/projects/Amlogic/filesystem/usr/bin/cputemp new file mode 100755 index 0000000000..66e13bf88e --- /dev/null +++ b/projects/Amlogic/filesystem/usr/bin/cputemp @@ -0,0 +1,8 @@ +#!/bin/sh + +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) + +TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input) +TEMP="$(( $TEMP / 1000 ))" +echo "${TEMP} C" diff --git a/projects/Amlogic/filesystem/usr/bin/gputemp b/projects/Amlogic/filesystem/usr/bin/gputemp new file mode 120000 index 0000000000..6476b954d2 --- /dev/null +++ b/projects/Amlogic/filesystem/usr/bin/gputemp @@ -0,0 +1 @@ +cputemp \ No newline at end of file