mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix reset DNS to default
This commit is contained in:
parent
95565c6211
commit
08bdf596f2
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ disable_pihole() {
|
||||||
if [ "$(uci -q get openmptcprouter.${server}.pihole)" = "1" ] && [ "$(uci -q get dhcp.@dnsmasq[0].server)" != "127.0.0.1#5353" ]; then
|
if [ "$(uci -q get openmptcprouter.${server}.pihole)" = "1" ] && [ "$(uci -q get dhcp.@dnsmasq[0].server)" != "127.0.0.1#5353" ]; then
|
||||||
_log "Disable Pi-Hole..."
|
_log "Disable Pi-Hole..."
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set dhcp.@dnsmasq[0].server='127.0.0.1#5353'
|
delete dhcp.@dnsmasq[0].server
|
||||||
|
add_list dhcp.@dnsmasq[0].server='127.0.0.1#5353'
|
||||||
commit dhcp
|
commit dhcp
|
||||||
EOF
|
EOF
|
||||||
/etc/init.d/dnsmasq restart
|
/etc/init.d/dnsmasq restart
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue