Commit 6c309f10 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Check if internet connection exists and issue a warning if it doesnt

parent 74786eaf
......@@ -14,6 +14,10 @@ if [[ $EUID != 0 ]]; then
exit
fi
echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
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."
fi
function get_wlan_interface ()
{
......
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