[mythtv-users] Wait for DVB devices

Mark Lord mythtv at rtr.ca
Mon Oct 24 02:52:22 UTC 2011


On 11-10-23 08:46 PM, Josu Lazkano wrote:
>..
> Hello, I notice that I have not installed the upstart, I try to
> install it but if I install upstart I must uninstall sysvinit, and I
> think this is not a good idea.
> 
> Is possible to add the adapters check before mythbackend starts with sysvinit?

Absolutely.  Way better than upstart, too.

Eg. you could do this (below), or even something more sophisticated,
from the /etc/init.d/mythtv-backend script:

    while [ ! -e /dev/dvb/adapter0/frontend0 ] ; do
       sleep 0.5
    done

On my own system, I have a rather more complex script to wait for multiple DVB/V4L
devices to become fully present, and the script then creates unique symlinks for
each of them so I don't have to rely on particular cards being assigned particular
numbers by the kernel.

Cheers




More information about the mythtv-users mailing list