openwrtv4/package/network/services/odhcpd/files/odhcpd-update
2014-01-17 13:59:51 +00:00

5 lines
139 B
Bash
Executable file

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