Revert "luci-app-turboacc: adapt dnsmasq settings"

This reverts commit 513770ccb0.
This commit is contained in:
lean 2022-07-20 00:17:43 +08:00
parent 513770ccb0
commit 0ee83a4cf6

View File

@ -220,11 +220,7 @@ revert_dns() {
[ -e "/var/run/dnscache/.dns-changed" ] || return 1
uci -q del_list dhcp.@dnsmasq[0].server="127.0.0.1#5333"
if [ -s "/tmp/resolv.conf.auto" ]; then
uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.auto"
else
uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
fi
uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
uci set dhcp.@dnsmasq[0].noresolv="0"
uci commit dhcp