dnsmasq: make tftp root if not existing
authorAlberto Bursi <alberto.bursi@outlook.it>
Tue, 2 May 2017 17:31:17 +0000 (19:31 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 1 Jun 2017 22:09:14 +0000 (00:09 +0200)
commit9e20cc56b9a7244b14a5aa8d807148a619339103
treec84c662f2fa4b6a0eace5e6d94f8e1de99f324a8
parentebf46d2c5bd3c4f1ff80544a134f87131e011056
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