odhcpd: several bugfixes and improved integration
[openwrt.git] / package / network / services / odhcpd / files / odhcpd-update
index 20980f2228cbffd32608b4fc29733ea363784f8d..e17cd0bfff6bfbc3fcf474e8ea2275c043dcdc75 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh
 # Make dnsmasq reread hostfile
-killall -SIGHUP dnsmasq
+
+pid=$(pidof dnsmasq)
+[ "$(readlink /proc/$pid/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $pid