[mythtv-users] plugctl changes reseting on reboot

Bob mythtv at cox.net
Wed Nov 21 19:20:43 UTC 2007


Ryan Allen wrote:
> * Myth User <MythUser at shaw.ca> wrote on [11-20-07y 19:20]:
>   
>> So every time I boot my system and MythTV I need to go into a terminal screen and make the same changes with Plugctl, is there any way to persist the changes?
>>     
>
>
> I put the plugctl commands in /etc/init.d/mythtv-backend under the
> "start" block.
>
> Problem is, seems sometimes my cable box changes from node 1 to  node 0.
> I haven't figured out when or why this happens.
>
>
>
>
>   
Here is one line of perl that you can use inside a shell script to 
detect the firewire node:

#!/bin/sh

node=`plugreport 2> /dev/null | perl -ne '$n = $1 if($_ =~ m/Node 
(\d)/); if($_=~ m/n_plugs/) { print "$n\n"; exit; }'`
echo "node = $node"



More information about the mythtv-users mailing list