summaryrefslogtreecommitdiff
path: root/package/network/services/odhcpd/files/odhcpd-update
blob: e17cd0bfff6bfbc3fcf474e8ea2275c043dcdc75 (plain)
1
2
3
4
5
#!/bin/sh
# Make dnsmasq reread hostfile

pid=$(pidof dnsmasq)
[ "$(readlink /proc/$pid/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $pid