xbmc:scripts/gputemp: lspci is not available on RPi

closes #2840
This commit is contained in:
Stefan Saraev 2013-12-29 16:57:01 +02:00
parent c4b76f5406
commit c354b71f65

View File

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