11 lines
131 B
Plaintext
11 lines
131 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
echo -n Waiting for $1 serial...
|
||
|
|
||
|
COUNTER=0
|
||
|
while [ ! -c $1 ] && ((COUNTER++ < 40)); do
|
||
|
sleep 0.1
|
||
|
done
|
||
|
|
||
|
echo Done
|