Fix issue in network module

This commit is contained in:
natemaia 2018-07-15 23:55:17 -07:00
parent 2b42b7a86e
commit 4b6cab805c

View File

@ -8,9 +8,6 @@ ethernet_connected=""
while true; do
if (ping -c 1 archlabslinux.com || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then
echo "$disconnected" ; sleep 0.6
echo "$disconnected2" ; sleep 0.6
else
# avoid checking what type of interface it is every loop
if (( count < 1 )); then
ID="$(ip link | awk '/state UP/ {print $2}')"
@ -22,5 +19,8 @@ while true; do
else
echo "$wireless_connected" ; sleep 25
fi
else
echo "$disconnected" ; sleep 0.6
echo "$disconnected2" ; sleep 0.6
fi
done