Skip to content

Commit

Permalink
package/systemd: use interface name for networkd config file
Browse files Browse the repository at this point in the history
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 <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  • Loading branch information
unilogicbv authored and tpetazzoni committed Feb 3, 2020
1 parent 6082de3 commit 5ba81d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/systemd/systemd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ba81d0

Please sign in to comment.