[mythtv-users] Specifying blaster script breaks TV viewing on PVR-150

Gavin Hurlbut gjhurlbu at gmail.com
Mon Nov 7 20:23:38 UTC 2011

On Mon, Nov 7, 2011 at 12:16 PM, Bob Shanteau <rmshant at gmail.com> wrote:
> On 11/7/2011 11:50 AM, Raymond Wagner wrote:
>> It sounds like whatever your script does, it is erroring out. If the
>> channel change script returns an exit code anything but 0, it will
>> assume tuning failed, and abort the recording.
> Here is the change channel script I am using (it was created by MythDora):
> #!/bin/bash
> #STB channel changer created by mdconfig
> PATH=/bin:/usr/bin:/usr/sbin
> REMOTE=Hauppauge_350
> for digit in $(echo $1 | sed -e 's/./& /g'); do
>     irsend --device=/var/run/lirc/lircd SEND_ONCE $REMOTE $digit
>     sleep 0.2
> done
> irsend --device=/var/run/lirc/lircd SEND_ONCE $REMOTE OK
> I don't see a procedure to return an exit code. I also checked several
> other scripts online and don't see that they return an exit code either.

Add "exit 0" at the end of the script to return an exit code of 0.
Otherwise, it will return the exit code of the last program run in the

More information about the mythtv-users mailing list