Warte bis Getät vorhanden
This commit is contained in:
parent
d77264ba9e
commit
18d0aa878a
1 changed files with 4 additions and 3 deletions
7
push.sh
7
push.sh
|
@ -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
|
||||
|
|
Reference in a new issue