summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/remotes/finish
blob: ac04a33da82f0bf3b4d36aecf0c1a80cefdc9df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
. /usr/MythVantage/bin/install_functions.sh

killall -9 lircd 2>/dev/null
rm -f /var/run/lirc*.pid
[ -e /etc/sv/remotes/.runtime ] || mkdir -p /etc/sv/remotes/.runtime
touch /etc/sv/remotes/.runtime/`date +%s`
numfiles=`/usr/bin/file_time_offset.py   -s4 -d/etc/sv/remotes/.runtime `
if [ $numfiles -gt 3 ]
then
	 rm -f /etc/sv/remotes/.runtime/* 2>/dev/null
	 sv stop remotes
	 printhl "    remotes is not able to start, disabling it"
fi



in_kernel_support "enable"