odhcpd: Fix dnsmasq re-reading hostfile
[openwrt/staging/lynxis/omap.git] / package / network / services / odhcpd / files / odhcpd-update
1 #!/bin/sh
2 # Make dnsmasq reread hostfile
3
4 pid=$(pidof dnsmasq)
5
6 for i in $pid; do
7 [ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i
8 done