[mythtvnz] Network not starting?

Robin Gilks g8ecj at gilks.org
Tue Sep 23 13:13:03 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.

Well my original patch didn't work because the link was up, just still
getting dhcp stuff. Now changed to static IP (which I would have done if I
knew the *buntu way of doing things) so I think I'm done :)


-- 
Robin Gilks





More information about the mythtvnz mailing list