mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
Merge branch 'master' into ipv6
This commit is contained in:
parent
d37db4304c
commit
3fc1817e7a
1 changed files with 10 additions and 2 deletions
12
gravity.sh
12
gravity.sh
|
@ -255,9 +255,17 @@ function gravity_advanced() {
|
|||
|
||||
function gravity_reload() {
|
||||
# Reload hosts file
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue