From 2b8f7b54ddc120f5b0d8b10978a5d4b01219ce33 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 25 Oct 2016 10:05:18 +0100 Subject: android: added option to change interface in multinode-target On x15 board the default interface is named eth1 instead of eth0 (as on other boards). For this reason it is important to have ability to change the interface name when using multinode over ethernet. Change-Id: I157096bdf2efbbd40b6a55fe328c783a38408dbd Signed-off-by: Milosz Wasilewski --- android/multinode-target.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'android') diff --git a/android/multinode-target.yaml b/android/multinode-target.yaml index f8d0beb..0522378 100644 --- a/android/multinode-target.yaml +++ b/android/multinode-target.yaml @@ -25,6 +25,7 @@ params: # identification to the host side. Default is ETH # which means adb-over-ethernet is used ADB_LINK: "ETH" + ETH_IFACE: "eth0" # timeout value to wait until the ip ia available for ping LAVA_SERVER_IP PING_TIMEOUT: 10 @@ -33,9 +34,9 @@ run: - cat /system/build.prop - getprop - SERIALNO=$(getprop ro.serialno) - - IPADDR=$(getprop dhcp.eth0.ipaddress) + - IPADDR=$(getprop dhcp.$ETH_IFACE.ipaddress) - if [ -z "${IPADDR}" ]; then - - IPADDR=$(ifconfig eth0|grep "inet addr:") + - IPADDR=$(ifconfig $ETH_IFACE|grep "inet addr:") - IPADDR=${IPADDR#*:} - IPADDR=${IPADDR%% *} - fi -- cgit v1.2.3