[mythtv-users] delay backend start til USB tuners initialize

Hika van den Hoven hikavdh at gmail.com
Tue Apr 14 22:59:45 UTC 2015


Hoi James,

Wednesday, April 15, 2015, 12:53:15 AM, you wrote:

> On Wed, 15 Apr 2015, Hika van den Hoven wrote:

>> In the script starting the backend put sleep n in the line before the
>> actual starting command. Where n is a number of seconds of choice. You
>> have to experiment on how many seconds you need. Or you can check in
>> your log on when the last one comes up.

> Thanks for your reply, Hika. I've already put in a "sleep n" line. I just
> thought there might be a more sophisticated and/or accurate way. I'll take
> a look at the logs though and see what I can puzzle out about the timing
> from that.
> _______________________________________________

Maybe a check routine on the existence of the device-nodes in /dev. As
far as I know udev creates them after the full initialization is
finished.
Something like:
while [ ! -f /dev/... ]; do
      sleep 1
done


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list