Skip to content
Snippets Groups Projects
Commit 3546d12f authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci Committed by Danilo K. S. Yorinori
Browse files

common.sh: Changed output redirection for standard reasons

parent bde247d3
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,8 @@ function getNetworkInterface()
for interface in $(/sbin/route | grep default | awk '{print $NF}'); do
# Send ICMP ECHO_REQUEST to root server I or J
if ping -c 1 -I ${interface} 192.36.148.17 > /dev/null 2>&1 ||
ping -c 1 -I ${interface} 192.58.128.30 > /dev/null 2>&1 ; then
if ping -c 1 -I ${interface} 192.36.148.17 &> /dev/null ||
ping -c 1 -I ${interface} 192.58.128.30 &> /dev/null ; then
break
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment