openvpn: remove __DATE__ from options output
[openwrt.git] / package / network / services / odhcpd / files / odhcpd-update
index 20980f2..e17cd0b 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