summaryrefslogtreecommitdiffstats
path: root/abs/extra/xbmc/FEH.sh
blob: e040a786256c61bbfb9c7ec5a2e31ea5eb7fe5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

RETVAL=0

if [[ -z $(glxinfo | grep "direct rendering.*Yes" | uniq) ]]; then
  echo "XBMC needs hardware accelerated OpenGL rendering."
  echo "Install an appropriate graphics driver."
  echo 
  echo "Please consult XBMC Wiki for supported hardware"
  echo "http://xbmc.org/wiki/?title=Supported_hardware"
  echo
  RETVAL=1
fi

if [[ -z $(xdpyinfo | grep "depth of root.*24" | uniq) ]]; then
  echo "XBMC cannot run unless the"
  echo "screen color depth is atleast 24 bit."
  echo
  echo "Please reconfigure your screen."
  RETVAL=1
fi

exit ${RETVAL}