From: Pascal de Bruijn Date: Wed, 8 Jan 2020 10:44:39 +0000 (+0100) Subject: package/systemd: use interface name for networkd config file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ba81d0109feeaf19c44416fee92ae39588ecfcf;p=buildroot.git 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 --- 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