+if [ -z "$(ip r list exact default)" ]; then
+ if [ "1" -eq "${VERBOSE}" ]; then
+ echo "Not online because no default route."
+ fi
+ exit
+fi
+
+
+if ! ping -c1 "${PINGHOST}" 2>&1 >/dev/null; then
+ if [ "1" -eq "${VERBOSE}" ]; then
+ echo "Not online because cannot ping ${PINGHOST}."
+ fi
+ exit