projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
odhcpd: several bugfixes and improved integration
[openwrt.git]
/
package
/
network
/
services
/
odhcpd
/
files
/
odhcpd-update
diff --git
a/package/network/services/odhcpd/files/odhcpd-update
b/package/network/services/odhcpd/files/odhcpd-update
index
20980f2
..
e17cd0b
100755
(executable)
--- a/
package/network/services/odhcpd/files/odhcpd-update
+++ b/
package/network/services/odhcpd/files/odhcpd-update
@@
-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