gputemp: fix nvidia/gputemp after 58a4990

thanks @ozolli
This commit is contained in:
Stefan Saraev 2014-07-14 19:17:20 +03:00
parent d2fea23349
commit fb16e903bc

View File

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