From 52c231ba861bcaae4969e99d8d8b7942fbebe7bf Mon Sep 17 00:00:00 2001 From: jow Date: Sat, 21 Dec 2013 13:31:28 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39152 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/dnsmasq/files/dnsmasq.hotplug | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 package/network/services/dnsmasq/files/dnsmasq.hotplug (limited to 'package/network/services/dnsmasq/files/dnsmasq.hotplug') diff --git a/package/network/services/dnsmasq/files/dnsmasq.hotplug b/package/network/services/dnsmasq/files/dnsmasq.hotplug new file mode 100644 index 0000000000..ca5d10c2ed --- /dev/null +++ b/package/network/services/dnsmasq/files/dnsmasq.hotplug @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "$ACTION" = ifup ] || exit 0 + +/etc/init.d/dnsmasq enabled && /etc/init.d/dnsmasq start -- cgit v1.2.3