mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Remove Pi-Hole IP on VPS if VPN is down
This commit is contained in:
parent
19e67d7c0b
commit
daf4a546ba
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ del_server_route() {
|
|||
|
||||
disable_pihole() {
|
||||
local server=$1
|
||||
if [ "$(uci -q get openmptcprouter.${server}.pihole)" = "0" ] && [ -n "$(uci -q get dhcp.@dnsmasq[0].server | grep '#53' | grep '10.2')" ]; then
|
||||
if [ -n "$(uci -q get dhcp.@dnsmasq[0].server | grep '#53' | grep '10.2')" ]; then
|
||||
_log "Disable Pi-Hole..."
|
||||
uci -q del_list dhcp.@dnsmasq[0].server="$(uci -q get dhcp.@dnsmasq[0].server | tr ' ' '\n' | grep '#53' | grep '10.2')"
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
|
|
Loading…
Reference in a new issue