diff --git a/install/install.sh b/install/install.sh index 5e17741..11b56b9 100755 --- a/install/install.sh +++ b/install/install.sh @@ -48,8 +48,6 @@ if [ -z "${DISPLAY:-}" ]; then exit 1 fi - - function mostrarheader(){ conditional_clear @@ -153,6 +151,21 @@ function installer { conditional_clear mostrarheader + +#Check internet connection +wget -q --spider http://google.com +internet=$? +if [ "$internet" != "0" ]; then + echo "Waiting for internet connection..." + while [ "$internet" != "0" ] + do + sleep 1 + wget -q --spider http://google.com + internet=$? + done +fi + + echo "Updating system..." #cleaning up