More ping sites for network script, vimrc changes, remove .config/setup

This commit is contained in:
natemaia
2018-07-13 14:01:38 -07:00
parent b514f3ef29
commit 15aadd2112
7 changed files with 26 additions and 41 deletions

View File

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