#!/bin/sh
# Make dnsmasq reread hostfile
pid=$(pidof dnsmasq)
for i in $pid; do
[ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i
done