File: 0006-systemd-Read-global-and-interface-specific-config-fi.patch

package info (click to toggle)
clatd 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 352 kB
  • sloc: perl: 821; makefile: 51; sh: 43
file content (33 lines) | stat: -rw-r--r-- 846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: =?utf-8?q?Daniel_Gr=C3=B6ber?= <dxld@darkboxed.org>
Date: Sun, 16 Nov 2025 12:06:34 +0100
Subject: systemd: Read global and interface specific config file

---
 scripts/clatd@.systemd | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/scripts/clatd@.systemd
+++ b/scripts/clatd@.systemd
@@ -15,14 +15,21 @@
 [Unit]
 Description=464XLAT CLAT daemon
 Documentation=man:clatd(8)
+
 Wants=network-online.target
 After=network-online.target
 After=nss-lookup.target
+
+# Replace global instance (which autodetected plat-dev) since we user
+# selected one now.
+Conflicts=clatd.service
+Before=clatd.service
+
 StartLimitIntervalSec=0
 
 [Service]
 Type=simple
-ExecStart=/usr/sbin/clatd -c /etc/clatd/%i.conf
+ExecStart=/usr/sbin/clatd -c /etc/clatd.conf -c /etc/clatd/%i.conf plat-dev=%i
 
 [Install]
 WantedBy=multi-user.target