mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
gputemp: fix nvidia/gputemp after 58a4990
thanks @ozolli
This commit is contained in:
parent
d2fea23349
commit
fb16e903bc
@ -26,7 +26,7 @@ TEMP=0
|
||||
if [ $(basename "$0") = "gputemp" -o "$1" = "gpu" ]; then
|
||||
if which lspci >/dev/null; then
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
[ -x /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep 'gpu_temp' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
|
||||
[ -x /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep '<gpu_temp>' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user