dnsmasq: add mini_ttl remove migration

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 26347ab759)
This commit is contained in:
Tianling Shen
2024-02-20 22:22:30 +08:00
parent 75eb596357
commit 1346bd97da

View File

@@ -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