mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
xbmc: add gpu type detection
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f00a04121b
commit
154b6436ce
@ -27,3 +27,11 @@
|
|||||||
XBMC_HOME="/usr/share/xbmc"
|
XBMC_HOME="/usr/share/xbmc"
|
||||||
|
|
||||||
export XBMC_HOME
|
export XBMC_HOME
|
||||||
|
|
||||||
|
GPUDEVICE=$(lspci -n | grep 0300)
|
||||||
|
GPUTYPE="OTHER"
|
||||||
|
[ "$(echo $GPUDEVICE | grep 8086)" ] && GPUTYPE="INTEL" # 8086 == INTEL
|
||||||
|
[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA
|
||||||
|
[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD
|
||||||
|
|
||||||
|
export GPUTYPE
|
Loading…
x
Reference in New Issue
Block a user