#!/bin/sh
#
# setup the Digimatrix
#
# runlevels: geexbox, debug

[ -f /proc/acpi/dsdt ] || exit 1
[ `grep -e P4SQ -c /proc/acpi/dsdt` -eq 0 ] && exit 1

echo "### Setting up Digimatrix ###"

[ -x /usr/bin/digifan ] && digifan -g 5 -i
[ -x /usr/bin/digipanel ] && digipanel -lts
[ -x /usr/bin/digiradio ] && echo '' > /var/digimatrix

# PAL-I/SECAM requires tda9887 options for audio
echo "options tda9887 port2=0" >> /etc/modprobe.conf

exit 0
