From 5ba81d0109feeaf19c44416fee92ae39588ecfcf Mon Sep 17 00:00:00 2001
From: Pascal de Bruijn
Date: Wed, 8 Jan 2020 11:44:39 +0100
Subject: [PATCH] package/systemd: use interface name for networkd config file
By using the interface in the filename for the networkd config file,
we have a clear association between the config file and the interface
it applies to.
This is beneficical for systems that have multiple interfaces.
Signed-off-by: Pascal de Bruijn
Signed-off-by: Thomas Petazzoni
---
package/systemd/systemd.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 791e770ca1..6e31a14ac3 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -330,7 +330,7 @@ ifneq ($(SYSTEMD_NETWORKD_DHCP_IFACE),)
define SYSTEMD_INSTALL_NETWORK_CONFS
sed s/SYSTEMD_NETWORKD_DHCP_IFACE/$(SYSTEMD_NETWORKD_DHCP_IFACE)/ \
$(SYSTEMD_PKGDIR)/dhcp.network > \
- $(TARGET_DIR)/etc/systemd/network/dhcp.network
+ $(TARGET_DIR)/etc/systemd/network/$(SYSTEMD_NETWORKD_DHCP_IFACE).network
endef
endif
else
--
2.30.2