1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-09-06 22:02:30 +02:00
parent 95565c6211
commit 08bdf596f2

View file

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