dnsmasq: add dhcp-script hook conditionally
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 9 Jun 2017 14:24:12 +0000 (16:24 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 9 Jun 2017 14:44:04 +0000 (16:44 +0200)
commit8b486ec2b52056b737a4ce64a2040a9a27a6bd60
treeebf3c97b112b4c5cfe57fd0defab9fc990ec2f2f
parentc00fbaf670494e7cd3dd05bff18cb6b407ac642d
dnsmasq: add dhcp-script hook conditionally

Commit b32689afd6a661339861086c669e15c936293cf8 added support for dhcp-script hook.
Adding dhcp-script config option results into two instances of dnsmasq being run
which triggered oom issues on platforms having low memory.

The dnsmasq dhcp-script config option will now only be added if at least one of the
dhcp, tftp, neigh hotplug dirs has a regular hotplug file or if the dhcpscript uci
config option is specified.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init