[mythtv-users] HDHR not available causes backend to crash

David Brodbeck gull at gull.us
Tue Jan 30 02:42:42 UTC 2007

Calvin Harrigan wrote:
> The problems is not that it's not getting the same IP address, but it 
> doesn't have any address by the time the mythbackend services starts.
> Remember that the DHCP server is on the same machine as myth.
> The HDHR eventually gets one, but it'll be too late by then.

Why not add something to your startup script that tries to ping the
HDHR, and waits until it appears before letting Myth start?

I'd do it something like this (not tested, but similar to code I've used

PINGCHECK=`ping -c 3 $HDIP`

echo -n "Waiting for HDHR at $HDIP to come up"
while ( !( echo $PINGCHECK | grep 'bytes from' >/dev/null) )
   sleep 1
   echo -n "."
echo "OK."

More information about the mythtv-users mailing list