5f800aac60a882bc9284491cda21c465b7a71abf
[openwrt/staging/blogic.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