Files
quectel-rgmii-toolkit/attelnetdaemon/at-telnet/smd7_systemd_units/socat-smd7-from-ttyIN.service
iamromulan 428f2f42f3 Update socat-smd7-from-ttyIN.service
update for smd7
2023-12-01 22:21:57 -05:00

15 lines
297 B
Desktop File

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