summaryrefslogtreecommitdiff
path: root/package/network/services/odhcpd/files/odhcpd-update
blob: 5f800aac60a882bc9284491cda21c465b7a71abf (plain)
1
2
3
4
5
6
7
8
#!/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