[mythtv-users] delaying backend startup until the network is up

Greg Oliver oliver.greg at gmail.com
Tue Dec 18 02:29:36 UTC 2018


On Mon, Dec 17, 2018 at 7:39 PM Bill Meek <keemllib at gmail.com> wrote:

> On 12/17/18 3:31 PM, James Abernathy wrote:
>
> ...
> > ExecStartPre=/usr/local/bin/hdhomerun.py
> ...
>
> Just another solution, tests that the HDHR is discover-able.
>
> Attached.
>
> --
> Bill
>

Ya'll must all just be bored and like to use python to run stuff much
quicker in bash :)

#!/bin/bash

hdhrConfig=$(which hdhomerun_config)
while true ; do
    $hdhrConfig discover 2>&1 > /dev/null
    if [ $? -eq 0 ]; then exit 0
    else sleep 1 ; fi
done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181217/4e1f77d2/attachment.html>


More information about the mythtv-users mailing list