summaryrefslogtreecommitdiff
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2016-04-07 16:09:04 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2016-04-07 16:09:04 +0800
commit6a99ace571fd22bab033b030dab3aed45eba8211 (patch)
tree7c7b465e51131d2f8f87b9d06d1bc19b9c44c84a
parent397fd254534a86d64296cb0ee2ad09a141ea5fc4 (diff)
p-p-c: sele the correct interface for mobile broadband test.
The interface from nmcli output has been changed to the second field, change the script to select the correct interface column.
-rw-r--r--jobs/mobilebroadband.txt.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/mobilebroadband.txt.in b/jobs/mobilebroadband.txt.in
index 6da30182..0f1abb7c 100644
--- a/jobs/mobilebroadband.txt.in
+++ b/jobs/mobilebroadband.txt.in
@@ -17,7 +17,7 @@ command:
`[ -n "${GSM_USERNAME}" ] && echo "--username=$GSM_USERNAME"` \
`[ -n "${GSM_PASSWORD}" ] && echo "--password=$GSM_PASSWORD"` || exit 1
fi
- INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13`
+ INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 2`
echo "connected GSM interface seems to be $INTERFACE"
[ -z $INTERFACE ] && exit 1
curl http://start.ubuntu.com/connectivity-check.html --interface $INTERFACE
@@ -46,7 +46,7 @@ command:
`[ -n "${CDMA_USERNAME}" ] && echo "--username=$CDMA_USERNAME"` \
`[ -n "${CDMA_PASSWORD}" ] && echo "--password=$CDMA_PASSWORD"` || exit 1
fi
- INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 13`
+ INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 2`
echo "connected CDMA interface seems to be $INTERFACE"
[ -z $INTERFACE ] && exit 1
curl http://start.ubuntu.com/connectivity-check.html --interface $INTERFACE