Commit d75240d4 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Internet detection that also works behind proxy https://github.com/armbian/config/issues/35

parent 6a2567dd
...@@ -24,7 +24,7 @@ fi ...@@ -24,7 +24,7 @@ fi
# #
# check for internet connection to install dependencies # check for internet connection to install dependencies
# #
echo -e "GET http://github.com HTTP/1.0\n\n" | nc github.com 80 > /dev/null 2>&1 wget -q --spider http://github.com
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
read -n 1 -s -p "Warning. Configurator can't work properly without internet connection. \ read -n 1 -s -p "Warning. Configurator can't work properly without internet connection. \
Press CTRL C to stop to stop or any key to ignore and continue." Press CTRL C to stop to stop or any key to ignore and continue."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment