Fresh pull from upstream
[librecmc/librecmc.git] / package / network / services / odhcpd / files / odhcpd-update
index e17cd0bfff6bfbc3fcf474e8ea2275c043dcdc75..9bc7abcc1c3a85c77a3e8b791393768f7afec570 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
-# Make dnsmasq reread hostfile
+# Make dnsmasq reread hostfile by sending SIGHUP signal
 
-pid=$(pidof dnsmasq)
-[ "$(readlink /proc/$pid/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $pid
+. $IPKG_INSTROOT/lib/functions/procd.sh
+
+procd_send_signal dnsmasq