summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit-scripts/runitscripts/services/evrouter/run
blob: 5697f6f41533769f8861199adb197f2be37228f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
. /etc/profile
which evrouter >/dev/null 2>/dev/null
if [ $? = 0 ]
then
	ps -ef |grep -v grep|grep -q "Xvfb :50"
	if [ ! $?  = 0 ]
	then
		sv start Xvfb
	fi
	su mythtv -c "DISPLAY=localhost:50 evrouter -c /etc/evrouter.cfg -f /dev/input/event*"
fi