#!/bin/bash

while :
do
	if ping -qnw1 -c1 www.google.fr 2>&1 >/dev/null
	then

		conky -c ~/.conkyrc_meteo_english_data&
	while :
	do
		sync=$(cat ~/conky/meteo_english/finish | grep 'OK')
  		if [ ! -z "$sync" ]
  		then
			conky -c ~/.conkyrc_mail_apt_data&
			exit 0
  		fi
	done
		exit 0
	fi
done
