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' DIR='push.d'
stty -F "$DEV" 9600 -brkint -icrnl -imaxbel -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke stty -F "$DEV" 9600 -brkint -icrnl -imaxbel -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
if [ -c "$DEV" ]; then while [ ! -c "$DEV" ]; then
sleep 2 && echo '?' >> "$DEV" & sleep 2
fi done
echo '?' >> "$DEV" &
while true; do while true; do
if [ -c "$DEV" ]; then if [ -c "$DEV" ]; then