From ec8aa082fcf2e895996e742c2e3655ee75e0394c Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Mon, 9 Apr 2018 21:01:33 -0600 Subject: [PATCH] isc-dhcp: allow hosts to have dhcp options Sometimes it's necessary to set per-host options like: list dhcp_option 'option:always-broadcast,true' for hosts that don't understand unicast replies. There might be other options you might want to set on a per-host basis, such as extensions-path, dhcp-message-text, etc. Signed-off-by: Philip Prindeville --- net/isc-dhcp/Makefile | 2 +- net/isc-dhcp/files/dhcpd.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net/isc-dhcp/Makefile b/net/isc-dhcp/Makefile index f22d743278..ed4ca7052a 100644 --- a/net/isc-dhcp/Makefile +++ b/net/isc-dhcp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=isc-dhcp UPSTREAM_NAME:=dhcp PKG_VERSION:=4.4.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index 8eb20d101d..70841903e1 100644 --- a/net/isc-dhcp/files/dhcpd.init +++ b/net/isc-dhcp/files/dhcpd.init @@ -112,6 +112,7 @@ static_host_add() { if [ -n "$gateway" ] ; then echo " option routers $gateway;" fi + config_list_foreach "$cfg" "dhcp_option" append_dhcp_options echo "}" done }