#!/bin/bash

wget -q --tries=10 --timeout=20 --spider http://google.com
if [[ $? -eq 0 ]]; then
       exit;
else
        dit "il n'y a plus d'internet"
fi
