summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-25 10:05:18 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-25 10:05:18 +0100
commit2b8f7b54ddc120f5b0d8b10978a5d4b01219ce33 (patch)
treeaa7ed97bc7009cd1f63e9c1d3fbffffdcdcbef61 /android
parentae7807fbdc457301892b2d4734c7f7f5dbba94e0 (diff)
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 <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--android/multinode-target.yaml5
1 files changed, 3 insertions, 2 deletions
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