diff --git a/common.sh b/common.sh index cb030e093a98f7e339d656db24be360bdfe83b20..899af77da647083ce5b3abd5d8800d7b5a5002f3 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