diff --git a/home/bin/check-network b/home/bin/check-network index d80eb9ac..e94f69af 100755 --- a/home/bin/check-network +++ b/home/bin/check-network @@ -8,7 +8,7 @@ ethernet_connected="" while true; do if ping -c1 8.8.8.8 2>/dev/null; then ID=$(ip link | awk '/state UP/ {print $2}') - if [[ ${ID[0]} == "e" ]]; then + if [[ $ID == e* ]]; then echo "$ethernet_connected" ; sleep 10 else echo "$wireless_connected" ; sleep 10