diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-21 13:31:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-21 13:31:28 +0000 |
commit | efce764f0e60fa9602ac12039371cdad7e3e7237 (patch) | |
tree | 1055c709abeeab8b3543b66b6f764a71b1b61bb5 /package/network/services/dnsmasq/files/dnsmasq.hotplug | |
parent | 72f00c8de440ac3bf3c373c107e7555182f9fafb (diff) | |
download | mtk-20170518-efce764f0e60fa9602ac12039371cdad7e3e7237.zip mtk-20170518-efce764f0e60fa9602ac12039371cdad7e3e7237.tar.gz mtk-20170518-efce764f0e60fa9602ac12039371cdad7e3e7237.tar.bz2 |
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>
SVN-Revision: 39152
Diffstat (limited to 'package/network/services/dnsmasq/files/dnsmasq.hotplug')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.hotplug | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.hotplug b/package/network/services/dnsmasq/files/dnsmasq.hotplug new file mode 100644 index 0000000..ca5d10c --- /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 |