[mythtv-users] Slightly OT: can't get power button script to
restart front end (From Jarod's guide)
Jon Kunze
jon99ut at gmail.com
Thu Nov 3 11:40:25 EST 2005
I have this
begin
prog = irexec
button = OFF
repeat = 4
config = /usr/local/bin/mythpowerbutton.sh
end
Assigned to my power button, just the same as Jarod's guide, and yet when I
press the button, it doesn't shutdown mythfrontend, nor does it restart it
if it has crashed. Hence my tring to execute it manually.
On 11/3/05, Neil Bird <neil at fnxweb.com> wrote:
>
> Around about 03/11/05 12:35, Jon Kunze typed ...
> > $irexec /usr/local/bin/mythpowerbutton.sh
> > That is when i get the error on line 2 (or atleast I assume the :2 means
> > that the error is on line two.
>
> irxec takes a config. file, not an executable argument (man irexec).
>
> You want 'irexec --daemon' with the following somewhere in your ~/.lircrc:
>
> # Power Off/Exit
> ##begin
> ##prog = mythtv
> ##button = OFF
> ##config = Esc
> ##end
> begin
> prog = irexec
> button = OFF
> repeat = 4
> config = /usr/local/bin/mythpowerbutton.sh
> end
>
>
> Ref. http://wilsonet.com/mythtv/tips.php
>
> --
> [neil at fnx ~]# rm -f .signature
> [neil at fnx ~]# ls -l .signature
> ls: .signature: No such file or directory
> [neil at fnx ~]# exit
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20051103/3fff5a19/attachment.htm
More information about the mythtv-users
mailing list