diff --git a/packages/mediacenter/xbmc/profile.d/xbmc.conf b/packages/mediacenter/xbmc/profile.d/xbmc.conf index e7c7c03df0..7029bf1bd3 100644 --- a/packages/mediacenter/xbmc/profile.d/xbmc.conf +++ b/packages/mediacenter/xbmc/profile.d/xbmc.conf @@ -1,7 +1,6 @@ ################################################################################ # This file is part of OpenELEC - http://www.openelec.tv # Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -#      Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv) # # This Program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -32,10 +31,14 @@ XBMC_HOME="/usr/share/xbmc" 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 \ No newline at end of file +if [ -x /usr/bin/lspci ]; then + 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