mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
xbmc-rpi: run lspci only if its supported
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8a7fbbce4a
commit
61bb759125
@ -32,10 +32,14 @@ XBMC_HOME="/usr/share/xbmc"
|
|||||||
|
|
||||||
export XBMC_HOME
|
export XBMC_HOME
|
||||||
|
|
||||||
GPUDEVICE=$(lspci -n | grep 0300)
|
|
||||||
GPUTYPE="OTHER"
|
GPUTYPE="OTHER"
|
||||||
[ "$(echo $GPUDEVICE | grep 8086)" ] && GPUTYPE="INTEL" # 8086 == INTEL
|
|
||||||
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
|
if [ -x /usr/bin/lspci ]; then
|
||||||
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD
|
GPUDEVICE=$(lspci -n | grep 0300)
|
||||||
|
|
||||||
|
[ "$(echo $GPUDEVICE | grep 8086)" ] && GPUTYPE="INTEL" # 8086 == INTEL
|
||||||
|
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
|
||||||
|
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD
|
||||||
|
fi
|
||||||
|
|
||||||
export GPUTYPE
|
export GPUTYPE
|
Loading…
x
Reference in New Issue
Block a user