From 2c5ac1fcbe2337cab3b23cfe09b507c0833f10c8 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 30 Jan 2020 10:00:09 +0100 Subject: [PATCH] Workaround for some DHCP issues --- openmptcprouter/files/etc/uci-defaults/1940-omr-dns | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index 223eb9b53..9ebb15c9b 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -25,6 +25,13 @@ if [ "$(uci -q get dhcp.@dnsmasq[0].rebind_domain)" = "" ]; then commit dhcp EOF fi +if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then + uci -q batch <<-EOF >/dev/null + uci add_list dhcp.lan.dhcp_option='252,"\n"' + commit dhcp + EOF +fi + #uci -q batch <<-EOF >/dev/null # set unbound.@unbound[-1].add_local_fqdn=0 # set unbound.@unbound[-1].localservice=1