mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: scripts/cputemp: oops. lspci is in /usr/sbin
This commit is contained in:
parent
9f2bc15959
commit
699e8a32c8
@ -24,7 +24,7 @@
|
||||
TEMP=0
|
||||
|
||||
if [ $(basename "$0") = "gputemp" -o "$1" = "gpu" ]; then
|
||||
if [ -x /usr/bin/lspci ]; 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'`
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user