dnsmasq: rework init procedure
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Dec 2013 13:31:28 +0000 (13:31 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Dec 2013 13:31:28 +0000 (13:31 +0000)
commit52c231ba861bcaae4969e99d8d8b7942fbebe7bf
treec5e026bfc357903d28976a06366558b2a696f00f
parentf738e7b819a4d436edc2c3b8f10f9726e61c7958
dnsmasq: rework init procedure

- cache udhcp check results to speed up subsequent reloads
- enable procd file tracking for /var/etc/dnsmasq.conf to only reload service if needed
- implement reload action to only restart dnsmasq if /var/etc/dnsmasq.conf actually changed
- launch dnsmasq from interface hotplug to avoid race conditions with network bringup

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39152 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.hotplug [new file with mode: 0644]
package/network/services/dnsmasq/files/dnsmasq.init