diff --git a/dist/testbed-support/Makefile.iotlab b/dist/testbed-support/Makefile.iotlab index f36f1684cfce08ad093488996ebeef5f4861b271..887c7a319ff6e1b25b0836c893b16bc53509fae1 100644 --- a/dist/testbed-support/Makefile.iotlab +++ b/dist/testbed-support/Makefile.iotlab @@ -72,7 +72,8 @@ iotlab-stop: $(IOTLAB_AUTH) iotlab-check-exp $(Q)iotlab-experiment stop -i $(IOTLAB_EXP_ID) iotlab-term: iotlab-check-exp - $(Q)ssh -t $(IOTLAB_AUTHORITY) "test -f ~/.iotlabrc || iotlab-auth -u $(IOTLAB_USER)" + $(Q)ssh -t $(IOTLAB_AUTHORITY) "iotlab-experiment get -r > /dev/null || \ + iotlab-auth -u $(IOTLAB_USER)" $(Q)ssh -t $(IOTLAB_AUTHORITY) \ "tmux attach -t riot-$(IOTLAB_EXP_ID) || tmux new -s riot-$(IOTLAB_EXP_ID) \