#!/bin/sh
#
# setup the Digimatrix Wake-On-CIR
#
# runlevels: geexbox, debug

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

echo "### Setting up Digimatrix Wake-On-CIR ###"

[ -x /usr/bin/digiwake ] && digiwake -w

exit 0
