aboutsummaryrefslogtreecommitdiff
path: root/bin/wait-connection-leonardo
blob: 92d26f774908b78104304a37c1fda73abaeb3022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash

while [ ! -e $1 ]
do
    echo Waiting connection at $1
    sleep 0.2
done

sleep 1
# necessary for me...
# /dev/ttyACM0 used to disappear after the reset
# but no longer now. How can I tell whether the 
# connection is ready?

echo Connection Established