#!/bin/sh
#
# setup tv cards
#
# runlevels: geexbox, debug, install

if grep -q '0480: 1105:8300' /tmp/pci; then
  echo "### Setting up DXR3 card ###"

  # include module modprobe options
  . /etc/dxr3

  # Drivers for DXR3/Hollywood+ cards
  modprobe bt865 2>&1 >/dev/null
  modprobe adv717x $ADV717X_OPTS 2>&1 >/dev/null
  modprobe em8300 $EM8300_OPTS 2>&1 >/dev/null

  echo '' > /var/use_dxr3
fi

exit 0
