xbmc: scripts/xbmc-sources: lspci is in /usr/sbin

This commit is contained in:
Stefan Saraev 2013-12-29 21:11:31 +02:00
parent 699e8a32c8
commit c2afe085ea

View File

@ -86,7 +86,7 @@ EOF
#
# Always sync to vblank
if [ -x /usr/bin/lspci ]; then
if which lspci >/dev/null; then
GPUDEVICE=$(lspci -n | grep 0300)
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD