summaryrefslogtreecommitdiff
path: root/tool/connect
diff options
context:
space:
mode:
Diffstat (limited to 'tool/connect')
-rwxr-xr-xtool/connect31
1 files changed, 1 insertions, 30 deletions
diff --git a/tool/connect b/tool/connect
index 76ae0e7..3bbd3b7 100755
--- a/tool/connect
+++ b/tool/connect
@@ -1,32 +1,3 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eu 3exec tool/withstty con /dev/ttyUSB0
4
5OLD_SETTINGS="$(stty -g -F /dev/ttyUSB0)"
6
7stty -F /dev/ttyUSB0 \
8 1000000 \
9 -drain \
10 -clocal \
11 cread \
12 crtscts \
13 cs8 \
14 cstopb \
15 -hup \
16 parenb \
17 parodd \
18 -cmspar \
19 -igncr \
20 ignpar \
21 -parmrk \
22 inpck \
23 -istrip \
24 -ixany \
25 -ixoff \
26 -ixon \
27 -echo \
28 -icanon
29
30con /dev/ttyUSB0 || true
31
32stty -drain "$OLD_SETTINGS" -F /dev/ttyUSB0 2> /dev/null