#!/bin/sh # An alternative is nm-online(1). However, that will probably succeed # even if we can't access the wider Internet. # # `nmcli networking connectivity` apparently checks for full Internet # access but I'm not sure how it manages that. Also, I don't use # network manager on all machines, so this google wget is probably # better for that reason alone ! wget -q --tries=10 --timeout=20 --spider http://google.com