dnsmasq: add procd interface index tracking
authorValentyn Datsko <valikk.d@gmail.com>
Wed, 6 Apr 2022 13:13:13 +0000 (16:13 +0300)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 10 Apr 2022 15:26:01 +0000 (16:26 +0100)
commit660923cd74e6c31abc4a81c6b504d4a651973071
tree6ddf5b32b86ea04361c3cbc8a8380c2115eab2f7
parentce7ee54c550aca656d932b742de8d2b7d7eb1286
dnsmasq: add procd interface index tracking

Problem exist when dnsmasq is exclusively bind to particular interface.
After reconfiguring or restarting this interface, its index changes, but
dnsmasq uses the old one. When this problem occurs, dnsmasq does not
listen on the correct interface so DHCP does not work, and clients do not
get an IP address. Procd netdev param can be added to restart dnsmasq when
the interface index is changed.

Signed-off-by: Valentyn Datsko <valikk.d@gmail.com>
[combined into a single &&-connected statement]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 76f55e3c3f32dea63a385e9b3c8eaed1322089c7)
package/network/services/dnsmasq/files/dnsmasq.init