diff --git a/package/network/services/odhcpd/files/odhcpd-update b/package/network/services/odhcpd/files/odhcpd-update index 5f800aac60..9bc7abcc1c 100755 --- a/package/network/services/odhcpd/files/odhcpd-update +++ b/package/network/services/odhcpd/files/odhcpd-update @@ -1,8 +1,6 @@ #!/bin/sh -# Make dnsmasq reread hostfile +# Make dnsmasq reread hostfile by sending SIGHUP signal -pid=$(pidof dnsmasq) +. $IPKG_INSTROOT/lib/functions/procd.sh -for i in $pid; do - [ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i -done +procd_send_signal dnsmasq