Created
August 19, 2016 15:16
-
-
Save jhansche/e0aad87ef72bee592c007b15c588f51c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
adb start-server || adb start-server | |
echo "adb is started" | |
date | |
while [ "$(adb shell echo 1)" ]; do sleep 5; done | |
date | |
echo "adb is broken, restarting:" | |
adb kill-server | |
adb start-server || adb start-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment