detachLicense: Move towards detecting too many connected users condition
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Icbe7a1d7de73254dbe279d316f2d9228c9114aad
diff --git a/eclair-linaro/bin/detachLicense b/eclair-linaro/bin/detachLicense
index fcd9f01..c762682 100755
--- a/eclair-linaro/bin/detachLicense
+++ b/eclair-linaro/bin/detachLicense
@@ -12,4 +12,9 @@
sudo su "${ECLAIR_LICENSE_USER}" -c "\"${ECLAIR_TOP_DIR}/bin/eclair_licman\" -d 38199 -t \"${seconds}\" -s u" 2>&1 | tee /tmp/eclair_licman.out
rc=$?
echo rc: $rc
+
+if [ "$rc" -ne 0 ] && grep -q "too many users" /tmp/eclair_licman.out; then
+ echo "TODO: retry"
+fi
+
exit $rc