Jozsef Vadkan wrote:
Why doesn't my "internet-connection" script work?
When I plug the ethcable out, it just waits...and waits...and waits...
The script: http://pastebin.com/AE9U1qdL
DNS lookups take a long time to time out and fail. You could try a ping to your default gateway's IP address first.