mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-18 20:10:56 +00:00
Merge branch 'master' into ipv6
This commit is contained in:
parent
d37db4304c
commit
3fc1817e7a
12
gravity.sh
12
gravity.sh
@ -255,9 +255,17 @@ function gravity_advanced() {
|
|||||||
|
|
||||||
function gravity_reload() {
|
function gravity_reload() {
|
||||||
# Reload hosts file
|
# Reload hosts file
|
||||||
|
|
||||||
echo "** Refresh lists in dnsmasq..."
|
echo "** Refresh lists in dnsmasq..."
|
||||||
sudo kill -HUP $(pidof dnsmasq)
|
|
||||||
|
dnsmasqPid=$(pidof dnsmasq)
|
||||||
|
|
||||||
|
if [[ $dnsmasqPid ]]; then
|
||||||
|
# service already running - reload config
|
||||||
|
sudo kill -HUP $dnsmasqPid
|
||||||
|
else
|
||||||
|
# service not running, start it up
|
||||||
|
sudo service dnsmasq start
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
gravity_collapse
|
gravity_collapse
|
||||||
|
Loading…
Reference in New Issue
Block a user