ctucx.git: serial2tcp

serial to tcp/ip bridge

commit 82ba5985f8546f8cf2350918163418218eac9d0c
parent ef1ea798224b912aa3cee213bdf91bb362fa05ea
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 21 Feb 2021 14:04:06 +0100

systemd service: set serial device to raw mode and baudrate to 9600
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/serial2tcp@.service b/serial2tcp@.service
@@ -7,6 +7,7 @@ Wants=network-online.target
 [Service]
 Environment=SERIAL_DEVICE=/dev/%i
 Environment=PORT=2342
+ExecStartPre=stty -F /dev/%i raw -echo -echoe -echok speed 9600
 ExecStart=/usr/bin/serial2tcp
 Restart=on-failure
 RestartSec=1