summaryrefslogtreecommitdiff
path: root/package/network/services/dnsmasq/files/dnsmasq.init
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-06-20 13:21:28 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-06-20 14:07:19 +0200
commit0e84393ee27bc2c209863a0a006dea8b716cfb11 (patch)
tree0f134ed6b1410e00e50e5fdad23c9bdfaf44b593 /package/network/services/dnsmasq/files/dnsmasq.init
parent969fe206bdb910789bebd064d4b3be00238b0012 (diff)
downloadmtk-20170518-0e84393ee27bc2c209863a0a006dea8b716cfb11.zip
mtk-20170518-0e84393ee27bc2c209863a0a006dea8b716cfb11.tar.gz
mtk-20170518-0e84393ee27bc2c209863a0a006dea8b716cfb11.tar.bz2
dnsmasq: fix dnsmasq startup issue
Commit ecd954d530 installs specific interface triggers which rewrites the dnsmasq config file and restarts dnsmasq if the network interface becomes active for which a trigger has been installed. In case no dhcp sections are specified or ignore is set to 1 dnsmasq will not be started at startup which breaks DNS resolving. Fix this by ditching the BOOT check in start_service and always start dnsmasq at startup. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/services/dnsmasq/files/dnsmasq.init')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init8
1 files changed, 0 insertions, 8 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 4906df9..bb8d07f 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -1061,18 +1061,10 @@ service_triggers()
config_foreach add_interface_trigger dhcp
}
-boot()
-{
- BOOT=1
- start "$@"
-}
-
start_service() {
local instance="$1"
local instance_found=0
- [ -n "$BOOT" ] && return
-
. /lib/functions/network.sh
config_cb() {