Fix very quick message being displayed when connecting

This commit is contained in:
natemaia 2018-03-02 02:25:45 -08:00
parent 9cc5a56b00
commit ca4302120d

View File

@ -6,7 +6,7 @@ wireless_connected=""
ethernet_connected=""
while true; do
if ping -c1 8.8.8.8 2>/dev/null; then
if ping -c1 8.8.8.8 &>/dev/null; then
ID=$(ip link | awk '/state UP/ {print $2}')
if [[ $ID == e* ]]; then
echo "$ethernet_connected" ; sleep 10