From a285ae65fb32619a3a41feb90014a53cd1d883a9 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 25 Nov 2018 08:39:44 +0100 Subject: [PATCH 1/2] Backend changes for DHCPv4 rapid commit support Signed-off-by: DL6ER --- advanced/Scripts/webpage.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 0b5c351e..ecc35dbe 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -327,6 +327,10 @@ dhcp-leasefile=/etc/pihole/dhcp.leases echo "domain=${PIHOLE_DOMAIN}" >> "${dhcpconfig}" fi + if [[ "${DHCP_rapid_commit}" == "true" ]]; then + echo "dhcp-rapid-commit" >> "${dhcpconfig}" + fi + if [[ "${DHCP_IPv6}" == "true" ]]; then echo "#quiet-dhcp6 #enable-ra @@ -351,6 +355,7 @@ EnableDHCP() { change_setting "DHCP_LEASETIME" "${args[5]}" change_setting "PIHOLE_DOMAIN" "${args[6]}" change_setting "DHCP_IPv6" "${args[7]}" + change_setting "DHCP_rapid_commit" "${args[8]}" # Remove possible old setting from file delete_dnsmasq_setting "dhcp-" From 9f672593bc0b44e668e959311d418e0b9e3d08d6 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 26 Nov 2018 20:01:41 +0100 Subject: [PATCH 2/2] Update advanced/Scripts/webpage.sh Co-Authored-By: DL6ER --- advanced/Scripts/webpage.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index ecc35dbe..7b73d243 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -327,6 +327,8 @@ dhcp-leasefile=/etc/pihole/dhcp.leases echo "domain=${PIHOLE_DOMAIN}" >> "${dhcpconfig}" fi + # Sourced from setupVars + # shellcheck disable=SC2154 if [[ "${DHCP_rapid_commit}" == "true" ]]; then echo "dhcp-rapid-commit" >> "${dhcpconfig}" fi