<div dir="ltr"><div dir="ltr">On Mon, Dec 17, 2018 at 7:39 PM Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/17/18 3:31 PM, James Abernathy wrote:<br>
<br>
...<br>
> ExecStartPre=/usr/local/bin/hdhomerun.py<br>
...<br>
<br>
Just another solution, tests that the HDHR is discover-able.<br>
<br>
Attached.<br>
<br>
-- <br>
Bill<br></blockquote><div><br></div><div style="font-family:monospace,monospace" class="gmail_default">Ya'll must all just be bored and like to use python to run stuff much quicker in bash :)</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><span style="font-family:monospace,monospace">#!/bin/bash<br><br>hdhrConfig=$(which hdhomerun_config)<br>while true ; do<br>    $hdhrConfig discover 2>&1 > /dev/null<br>    if [ $? -eq 0 ]; then exit 0<br>    else sleep 1<span class="gmail_default" style="font-family:monospace,monospace"> ; fi</span><br>done</span><br><br></div></div></div>