Created
January 30, 2019 19:50
-
-
Save gleero/15589efa3b39da30055c20e262626271 to your computer and use it in GitHub Desktop.
Mac UART command
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/bash | |
echo "Waiting for the UART..." | |
while true; do | |
SERIAL="$(ls /dev/tty* | grep usbserial)" | |
if [ -n "$SERIAL" ]; then | |
screen "$SERIAL" 115200 | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment