dnsmasq: improve init script portability (FS#1446)
authorHans Dedecker <dedeckeh@gmail.com>
Sat, 24 Mar 2018 17:28:01 +0000 (18:28 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 24 Mar 2018 17:50:45 +0000 (18:50 +0100)
commit287f5ebd2fe4fac6632819a1b539f119551407e8
treeca3f44c5d1fdf9949561dd83cd241ef9a6565168
parent8e1065d681daff321f715ce5c6c172c12036bd6f
dnsmasq: improve init script portability (FS#1446)

Improve portability of init script by declaring resolvfile as local
in dnsmasq_stop function.
Fixes resolvfile being set for older busybox versions in dnsmasq_start
in a multi dnsmasq instance config when doing restart; this happens when
the last instance has a resolvfile configured while the first instance
being started has noresolv set to 1.

Base on a patch by "Phil"

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