dnsmasq: make tftp root if not existing
authorAlberto Bursi <alberto.bursi@outlook.it>
Tue, 2 May 2017 17:31:17 +0000 (19:31 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 4 May 2017 21:10:09 +0000 (23:10 +0200)
commit7296767639b511ab96ca2847ffad84dd4c37452d
tree797ea7222c6dc70b4f5d73cc1a26b88f69e23469
parentcd5cd7c859660a52a09d6744a4343e3078a8c883
dnsmasq: make tftp root if not existing

If there's a TFTP root directory configured, create it with mkdir -p
(which does not throw an error if the folder exists already)
before starting dnsmasq. This is useful for TFTP roots in /tmp, for example.

Originally submitted by nfw user aka Nathaniel Wesley Filardo

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
package/network/services/dnsmasq/files/dnsmasq.init