Skip to contentSkip to conversation

package/systemd: use interface for networkd config file

PATCH New Pascal de Bruijn 2 participants 2 messages Jan 8, 2020 – Feb 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: use interface 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 benefitical for systems that have multiple interfaces.

---
 package/systemd/systemd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/systemd/systemd.mk +1 -1
index 791e770..6e31a14 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/systemd: use interface for networkd config file

Quoted 10 lines · On Wed, 8 Jan 2020 11:44:39 +0100 Pascal de Bruijn <[email protected]>…

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 benefitical for systems that have multiple interfaces.

---
 package/systemd/systemd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com