xbmc-dharma: rework detection of loaded graphic driver

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-25 20:49:37 +02:00
parent 2c7f894272
commit fc1bbd76cc

View File

@ -28,19 +28,6 @@
progress "setup XBMC"
# find used graphic driver
if [ -d /sys/module/i915 ]; then
DRIVER="intel"
elif [ -d /sys/module/nouveau ]; then
DRIVER="nouveau"
elif [ -d /sys/module/nvidia ]; then
DRIVER="nvidia"
elif [ -d /sys/module/radeon ]; then
DRIVER="radeon"
else
DRIVER="other"
fi
#
# clean temp dir
#
@ -130,13 +117,12 @@ EOF
#
# Always sync to vblank
if [ "$DRIVER" = "radeon" -o "$DRIVER" = "nvidia" ] ; then
if [ "$GPUTYPE" = "NVIDIA" -o "$GPUTYPE" = "RADEON" ] ; then
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
<videoscreen>
<vsync>2</vsync>
</videoscreen>
EOF
fi
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
fi