mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
@@ -20,8 +20,10 @@
|
||||
|
||||
TEMP="0"
|
||||
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep 'gpu_temp' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
|
||||
if [ -x /usr/bin/lspci ] ; then
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep 'gpu_temp' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "${TEMP} C"
|
||||
|
||||
Reference in New Issue
Block a user