anisble: gsm-tester: uhubctl: add "-n 1d50:4002"

uhubctl -p 123456 -a 1 is rejecting because uhubctl detects two hubs.
Selecting only one hub.

Fixes the error message:
    Error: changing port state for multiple hubs at once is not supported.
    Use -l to limit operation to one hub!

Change-Id: I2e3c248e4eaef39f18ff38d1055db6d552fc4d20
This commit is contained in:
Alexander Couzens 2018-06-07 15:21:46 +02:00 committed by lynxis lazus
parent b3ce1d1f2d
commit ecb756f37c
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh
set -ex
uhubctl -p 123456 -a 0
uhubctl -p 123456 -a 0 -n 1d50:4002
# give a lot of time to discharge capacitors on the board
sleep 20
uhubctl -p 123456 -a 1
uhubctl -p 123456 -a 1 -n 1d50:4002
attempts=30
while [ "x$(uhubctl | grep -e 05c6 -e 1199 -c)" != "x{{ gsm_modems }}" ]; do
attempts=$(($attempts - 1))