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

common.sh: Removed unnecessary $interface declaration

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