How about pinging a known public IP address during the initialization of your software on the Yun until you get a response? :|
Ralf
I'm really hoping there's an easier way of doing it :L Already using two Temboo choreos per Yun, and still have yet to include sequences of code governing buzzers, buttons and LEDs.
Sorry, but I don't think that there is any easier way than that.
Pings are the least of amount of data to be send and received in order to positively determine "Internet connectivity".
And using a know IP address, to an external host that is known not to block ICMP, even doesn't account for the possibility of having working DNS, which is in a lot of cases what people run afoul of when complaining about "not being able to connect to the Internet" (I am doing support for an Open Source firewall projects for almost 14 years now)...
Ralf