[Buildroot] [PATCH 1/1] package/dhcp: Only install the relevant unit file
nroach44 at gmail.com
Mon Dec 1 14:18:16 UTC 2014
Previous to this patch, if BR2_PACKAGE_DHCP_CLIENT was selected,
dhcpd.service was installed to the target on systemd systems.
On the resultant system, this would mean that systemctl would
show an error starting dhcpd.service, as the requisite files
do not exist. This does not cause issue on sysvinit systems
as the init scripts silently error when the files aren't found.
Fix this by adding a conditional check to the install define.
Signed-off-by: Nathaniel Roach <nroach44 at gmail.com>
package/dhcp/dhcp.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
index 1eb6b32..2aa690f 100644
@@ -75,6 +75,7 @@ define DHCP_INSTALL_INIT_SYSV
$(INSTALL) -D -m 644 package/dhcp/dhcpd.service \
@@ -89,6 +90,7 @@ define DHCP_INSTALL_INIT_SYSTEMD
echo "f /var/lib/dhcp/dhcpd.leases - - - - -" >> \
More information about the buildroot