-
-
Notifications
You must be signed in to change notification settings - Fork 240
wireless devices autoconnection #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wireless devices autoconnection #67
Conversation
added daemon for wireless device autoconnection
| do | ||
| array_device=$(echo ${array[$i]} | tr -d " ") | ||
| #string contains check | ||
| if [[ ${connected_devices} != *${array_device}* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be more appropriate to user grep for this purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basically it is the same thing
| #string contains check | ||
| if [[ ${connected_devices} != *${array_device}* ]]; then | ||
| echo "Connecting to: ${array_device}" | ||
| adb connect ${array_device} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we check the exit code here to make sure the connection was really successful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we don't care. Anyway script will be run again after specified delay.
It is the main idea of this PR. Script will try to reconnect to remote device in any case
|
Unfortunately this PR is not finished |
|
Awesome @red-avtovo 👍 |
|
Now it's done! |
Updated entry point and Dockerfile
e00d07e to
5360b90
Compare
added daemon for wireless device autoconnection