updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xbmc-pvr-testing / FEH.sh
blobe040a786256c61bbfb9c7ec5a2e31ea5eb7fe5a1
1 #!/bin/bash
3 RETVAL=0
5 if [[ -z $(glxinfo | grep "direct rendering.*Yes" | uniq) ]]; then
6 echo "XBMC needs hardware accelerated OpenGL rendering."
7 echo "Install an appropriate graphics driver."
8 echo
9 echo "Please consult XBMC Wiki for supported hardware"
10 echo "http://xbmc.org/wiki/?title=Supported_hardware"
11 echo
12 RETVAL=1
15 if [[ -z $(xdpyinfo | grep "depth of root.*24" | uniq) ]]; then
16 echo "XBMC cannot run unless the"
17 echo "screen color depth is atleast 24 bit."
18 echo
19 echo "Please reconfigure your screen."
20 RETVAL=1
23 exit ${RETVAL}