From 699e8a32c82e5c442e572c39ac6601ed73dd7379 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sun, 29 Dec 2013 21:09:57 +0200 Subject: [PATCH] xbmc: scripts/cputemp: oops. lspci is in /usr/sbin --- packages/mediacenter/xbmc/scripts/cputemp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mediacenter/xbmc/scripts/cputemp b/packages/mediacenter/xbmc/scripts/cputemp index 6860c6dd7f..1136827f2d 100755 --- a/packages/mediacenter/xbmc/scripts/cputemp +++ b/packages/mediacenter/xbmc/scripts/cputemp @@ -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,,,g'` fi