diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2018-06-07 15:21:46 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2018-06-12 16:17:06 +0000 |
commit | ecb756f37cb4f44792930f17d25d3b14c8b1a7e6 (patch) | |
tree | 34913f1f74c52f80de673bac1a5873bbb7f09788 | |
parent | b3ce1d1f2df2db3151ccd4575198f89d0fcbae02 (diff) |
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
-rwxr-xr-x | ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh b/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh index 9262f97..626a04e 100755 --- a/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh +++ b/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh @@ -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)) |