Openwrt/package/network/services/odhcpd/files/odhcpd-update

6 lines
139 B
Plaintext
Raw Normal View History

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