Fix issue in network module
This commit is contained in:
parent
2b42b7a86e
commit
4b6cab805c
@ -8,9 +8,6 @@ ethernet_connected=""
|
|||||||
|
|
||||||
while true; do
|
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
|
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
|
# avoid checking what type of interface it is every loop
|
||||||
if (( count < 1 )); then
|
if (( count < 1 )); then
|
||||||
ID="$(ip link | awk '/state UP/ {print $2}')"
|
ID="$(ip link | awk '/state UP/ {print $2}')"
|
||||||
@ -22,5 +19,8 @@ while true; do
|
|||||||
else
|
else
|
||||||
echo "$wireless_connected" ; sleep 25
|
echo "$wireless_connected" ; sleep 25
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "$disconnected" ; sleep 0.6
|
||||||
|
echo "$disconnected2" ; sleep 0.6
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user