project: add cputemp script

This commit is contained in:
chewitt 2019-01-06 14:59:53 +00:00 committed by kszaq
parent 709a60e423
commit 8bf5a18af5
2 changed files with 9 additions and 0 deletions

View File

@ -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"

View File

@ -0,0 +1 @@
cputemp