|
From: Matt N. <ma...@fr...> - 2009-01-25 06:36:56
|
In my .lircrc I have the following:
begin
button = Clear
prog = irexec
repeat = 0
config = /home/mythfe/.mythtv/mythpowerbutton.sh
end
I works, but spawns two mythfrontend processes. I believe it is from irexec
executing the mythpowerbutton.sh twice in rapid succession... Any idea's?
The mythpowerbutton.sh contains the following:
#!/bin/bash
PROG=mythfrontend
STATUS=`ps -e | grep $PROG | grep -v grep | wc -l | awk '{print $1}'`
if [ `echo $DISPLAY | grep -c ":0"` -ge 1 ]
then
if [ $STATUS -eq 0 ]
then
( $PROG & )
else
killall $PROG
fi
fi
exit 0
|