STM32GENERIC/tools/linux/wait_for_serial

11 lines
131 B
Plaintext
Raw Normal View History

2017-05-23 11:17:41 -07:00
#!/bin/bash
echo -n Waiting for $1 serial...
COUNTER=0
while [ ! -c $1 ] && ((COUNTER++ < 40)); do
sleep 0.1
done
echo Done