From fdd25527a09db7805d2f210d7fe848c0ffcfccc3 Mon Sep 17 00:00:00 2001
From: ERIK ALEXANDRE PUCCI <eap08@c3sl.ufpr.br>
Date: Wed, 8 Dec 2010 11:58:56 -0200
Subject: [PATCH] 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: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br>
---
 common.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common.sh b/common.sh
index cb030e0..899af77 100644
--- a/common.sh
+++ b/common.sh
@@ -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
-- 
GitLab