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
