From 259bddfde7d4e91cd705a0e2b37f584c006908bf Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 17 Jan 2014 13:59:51 +0000 Subject: odhcpd: several bugfixes and improved integration git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39308 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/odhcpd/files/odhcpd-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '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 20980f2228..e17cd0bfff 100755 --- 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 -- cgit v1.2.3