mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
xbmc: scripts/xbmc-sources: lspci is in /usr/sbin
This commit is contained in:
parent
699e8a32c8
commit
c2afe085ea
@ -86,7 +86,7 @@ EOF
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Always sync to vblank
|
# Always sync to vblank
|
||||||
if [ -x /usr/bin/lspci ]; then
|
if which lspci >/dev/null; then
|
||||||
GPUDEVICE=$(lspci -n | grep 0300)
|
GPUDEVICE=$(lspci -n | grep 0300)
|
||||||
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
|
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
|
||||||
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD
|
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user