Add new files for 2nd Socat bridge

-Create a new set of systemd units to chose from for the creation of ttyIN2 and ttyOUT2 for a 2nd separate AT channel
-Create a new script that kills the smd7 port bridge when smd7 is needed for use by ttyOUT or ttyOUT2
This commit is contained in:
iamromulan
2024-02-26 22:43:47 -05:00
parent 26a74b1e24
commit 369e3ad673
7 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Read from /dev/ttyIN2 and write to smd11
BindsTo=socat-smd11.service
After=socat-smd11.service
[Service]
ExecStart=/bin/bash -c "/bin/cat /dev/ttyIN2 > /dev/smd11"
ExecStartPost=/bin/sleep 2s
StandardInput=tty-force
Restart=always
RestartSec=1s
[Install]
WantedBy=multi-user.target