All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] dhcp: S80dhcp-server: also source /etc/default/dhcpd.conf for INTERFACES
@ 2015-11-09 22:20 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2015-11-09 22:20 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=5eb54fc0950825664824aa4ef100036efd3b5be6
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 <peter@korsgaard.com>
---
 package/dhcp/S80dhcp-server |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server
index 3df14ff..356e735 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-09 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 22:20 [Buildroot] [git commit] dhcp: S80dhcp-server: also source /etc/default/dhcpd.conf for INTERFACES Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.