mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-09 09:17:27 +08:00
luci-app-turboacc: adapt dnsmasq settings
This commit is contained in:
parent
f6e8e0d314
commit
513770ccb0
@ -220,7 +220,11 @@ revert_dns() {
|
||||
[ -e "/var/run/dnscache/.dns-changed" ] || return 1
|
||||
|
||||
uci -q del_list dhcp.@dnsmasq[0].server="127.0.0.1#5333"
|
||||
uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
|
||||
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].noresolv="0"
|
||||
uci commit dhcp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user