projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
odhcpd: Fix dnsmasq re-reading hostfile
[librecmc/librecmc.git]
/
package
/
network
/
services
/
odhcpd
/
files
/
odhcpd-update
1
#!/bin/sh
2
# Make dnsmasq reread hostfile
3
4
pid=$(pidof dnsmasq)
5
6
for i in $pid; do
7
[ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i
8
done