#!/bin/sh

if [ -r /etc/sysconfig/displaymanager ]; then
  . /etc/sysconfig/displaymanager
  if [ "$DISPLAYMANAGER_XSERVER" == "Xgl" ]; then
    options=""
    while [ $# -gt 0 ]; do
      test "$1" != "--3D" && options="$options $1"
      shift
    done
  else
    options="$@"
  fi
else
  options="$@"
fi

exec /usr/bin/CheckHardware.bin $options
