[mythtvnz] Network not starting?

Criggie criggie at criggie.org.nz
Tue Sep 23 00:05:56 BST 2014


Robin Gilks wrote, On 23/09/14 08:23:
> OK - I've verified that it is the frontend coming up before the network so I've added the following into the mythfrontend.sh script to ensure the network is up.
>
>     until [ `cat /sys/class/net/eth0/operstate` = 'up' ]
>     do
>         sleep 1
>     done
>
> The name of the interface may change according to udev rules so best to check with ifconfig what your's is called!!
>


How about ping the backend's IP address until it replies?


Something like       ping -c 2 -w 99 10.11.12.13 > /dev/null

That will wait for up to 99 seconds for a reply.  

-- 
Criggie

http://criggie.org.nz/





More information about the mythtvnz mailing list