mirror of
https://github.com/moparisthebest/pi-hole
synced 2024-11-24 02:02:19 -05: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() {
|
||||
# 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 New Issue
Block a user