dnsmasq: add mini_ttl remove migration

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2024-02-20 22:22:30 +08:00
parent 8e1fbfe312
commit 26347ab759
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

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