Skip to content

Instantly share code, notes, and snippets.

@gleero
Created January 30, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gleero/15589efa3b39da30055c20e262626271 to your computer and use it in GitHub Desktop.
Save gleero/15589efa3b39da30055c20e262626271 to your computer and use it in GitHub Desktop.
Mac UART command
#!/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