From 5eb54fc0950825664824aa4ef100036efd3b5be6 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 9 Nov 2015 23:20:48 +0100 Subject: [PATCH] dhcp: S80dhcp-server: also source /etc/default/dhcpd.conf for INTERFACES Similar to how we do it for dhcpd.service. The file should really have been named /etc/default/dhcpd instead, but changing it now would break existing systemd setups so leave it as it is. Signed-off-by: Peter Korsgaard --- package/dhcp/S80dhcp-server | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server index 3df14ff122..356e73565a 100755 --- a/package/dhcp/S80dhcp-server +++ b/package/dhcp/S80dhcp-server @@ -7,6 +7,9 @@ # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="" +# Allow a few customizations from a config file +test -r /etc/default/dhcpd.conf && . /etc/default/dhcpd.conf + # Sanity checks test -f /usr/sbin/dhcpd || exit 0 test -f /etc/dhcp/dhcpd.conf || exit 0 -- 2.30.2