Skip to content

Commit

Permalink
edit wrong curl line, to check for internet
Browse files Browse the repository at this point in the history
  • Loading branch information
kinafu committed May 18, 2018
1 parent cc4592f commit 36e44f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sudNET-always-online-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ cat <<'EOF' | sudo tee /usr/local/bin/studnet.sh > /dev/null
HOST=https://bing.com
while true; do
while ! (curl --head --silent --connect-timeout 2 --cert-status "$HOST" > /dev/null && sleep 10); do #if 'ping' unsuccesful attempt to reconnect
while ! (curl --head --silent --connect-timeout 2 "$HOST" > /dev/null && sleep 10); do #if 'ping' unsuccesful attempt to reconnect
echo "Pinging $HOST was unsucessful." >2
echo "Reconnecting now"
kill %1 > /dev/null 2>&1
Expand Down

0 comments on commit 36e44f5

Please sign in to comment.