blob: 82d0268abb0b42f7e41c0b6ce822633a9747d365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
MYTH_RUN_STATUS="1"
. /etc/profile
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
which evrouter >/dev/null 2>/dev/null
if [ $? = 0 ]
then
stat_runit "Starting evrouter"
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*"
exec sudo -u mythtv -i DISPLAY=localhost:50 evrouter -c /etc/evrouter.cfg -f /dev/input/event*
fi
|