From 1346bd97dab89b75706e522b1954ce8deff076da Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 20 Feb 2024 22:22:30 +0800 Subject: [PATCH] dnsmasq: add mini_ttl remove migration Signed-off-by: Tianling Shen (cherry picked from commit 26347ab759cc0c171558dfbb5df4411933cf76ca) --- .../dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh b/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh index 480e2df471..ca85d06586 100755 --- a/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh +++ b/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh @@ -1,5 +1,7 @@ #!/bin/sh +uci -q get dhcp.@dnsmasq[0].mini_ttl >"/dev/null" && uci -q delete dhcp.@dnsmasq[0].mini_ttl + [ "$(uci get dhcp.@dnsmasq[0].resolvfile)" = "/tmp/resolv.conf.auto" ] && { uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto" uci commit dhcp