xbmc: scripts/cputemp: oops. lspci is in /usr/sbin

This commit is contained in:
Stefan Saraev 2013-12-29 21:09:57 +02:00
parent 9f2bc15959
commit 699e8a32c8

View File

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