#!/bin/bash export TERM=linux . /etc/rc.conf . /etc/rc.d/functions . /usr/MythVantage/bin/install_functions.sh [ -e /etc/sv/powermate/.runtime ] || mkdir -p /etc/sv/powermate/.runtime touch /etc/sv/powermate/.runtime/`date +%s` numfiles=`/usr/bin/file_time_offset.py -s4 -d/etc/sv/powermate/.runtime ` if [ $numfiles -gt 3 ] then rm -f /etc/sv/powermate/.runtime/* 2>/dev/null sv stop powermate printhl " powermate is not able to start, disabling it" fi in_kernel_support "enable"