From 6e2f9a842461942b1fcf48ff17174f4eeaf2d982 Mon Sep 17 00:00:00 2001 From: Links Date: Sat, 16 Apr 2022 10:26:34 +0200 Subject: [PATCH] add rigctld --- .../overlay/etc/systemd/system/rigctld.service | 14 ++++++++++++++ .../etc/systemd/system/rigctld_socat.service | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 userpatches/overlay/etc/systemd/system/rigctld.service create mode 100644 userpatches/overlay/etc/systemd/system/rigctld_socat.service diff --git a/userpatches/overlay/etc/systemd/system/rigctld.service b/userpatches/overlay/etc/systemd/system/rigctld.service new file mode 100644 index 0000000..1eb5bc8 --- /dev/null +++ b/userpatches/overlay/etc/systemd/system/rigctld.service @@ -0,0 +1,14 @@ +[Unit] +Description=Hamlib rigctld +Requires=x6100_socat_cat.service +Requires=rigctld_socat.service +Requires=x6100_cat_mux.service +Requires=x6100_app.service + +[Service] +User=root +ExecStart=/usr/bin/rigctld --model=3087 --rig-file=/dev/ttyX6100Cat +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/userpatches/overlay/etc/systemd/system/rigctld_socat.service b/userpatches/overlay/etc/systemd/system/rigctld_socat.service new file mode 100644 index 0000000..99b05cb --- /dev/null +++ b/userpatches/overlay/etc/systemd/system/rigctld_socat.service @@ -0,0 +1,12 @@ +[Unit] +Description=Hamlib rigctld socat +Requires=x6100_socat_cat.service +Requires=x6100_cat_mux.service + +[Service] +User=root +ExecStart=/usr/bin/socat pty,link=/dev/ttyX6100Cat,raw,echo=0 tcp:127.0.0.1:9090 +Restart=on-failure + +[Install] +WantedBy=multi-user.target \ No newline at end of file