Skip to content
Snippets Groups Projects
Commit fdd25527 authored by ERIK ALEXANDRE PUCCI's avatar ERIK ALEXANDRE PUCCI Committed by Danilo K. S. Yorinori
Browse files

common.sh: Changed "route" for "/sbin/route"


In some computers (e.g. UCA Classmates), route path is not defined in the
PATH variable.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarDiego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Signed-off-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
parent b386d7c7
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ function getNetworkInterface()
{
interface=""
for interface in $(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
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment