Warte bis Getät vorhanden

This commit is contained in:
Martin Ness 2016-05-01 13:51:57 +02:00
parent d77264ba9e
commit 18d0aa878a

View file

@ -4,9 +4,10 @@ DEV='/dev/ttyUSB0'
DIR='push.d'
stty -F "$DEV" 9600 -brkint -icrnl -imaxbel -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
if [ -c "$DEV" ]; then
sleep 2 && echo '?' >> "$DEV" &
fi
while [ ! -c "$DEV" ]; then
sleep 2
done
echo '?' >> "$DEV" &
while true; do
if [ -c "$DEV" ]; then