dnsmasq: don't use network functions at boottime (FS#1542)
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 17 Jul 2018 11:42:17 +0000 (13:42 +0200)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 28 Jul 2018 10:23:57 +0000 (11:23 +0100)
commitbf1b0fad2b788f2e933cbe43740402fba5acaf16
tree3f21b744547af917b175f278b708f95bcec2c19d
parentcb9d5f0a7cb6125d3fef9e803024a9690b1c56d9
dnsmasq: don't use network functions at boottime (FS#1542)

As dnsmasq is started earlier than netifd usage of network.sh functions
at boottime will fail; therefore don't call at boottime the functions
which construct the dhcp pool/relay info.
As interface triggers are installed the dhcp pool/relay info will be
constructed when the interface gets reported as up by netifd.
At the same time also register interface triggers based on DHCP relay
config.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(cherry picked from commit 2336b942b37f265c59547d738ca558b61102833d)
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init