openwrt/package/network/services
Etan Kissling 249aeaa9d8 dnsmasq: distinct Ubus names for multiple instances
Currently, when using multiple dnsmasq instances they are all assigned
to the same Ubus instance name. This does not work, as only a single
instance can register with Ubus at a time. In the log, this leads to
`Cannot add object to UBus: Invalid argument` error messages.
Furthermore, upstream 3c93e8eb41952a9c91699386132d6fe83050e9be changes
behaviour so that instead of the log, dnsmasq exits at start instead.

With this patch, all dnsmasq instances are assigned unique names so that
they can register with Ubus concurrently. One of the enabled instances
is always assigned the previous default name "dnsmasq" to avoid breaking
backwards compatibility with other software relying on that default.
Previously, a random instance got assigned that name (while the others
produced error logs). Now, the first unnamed dnsmasq config section is
assigned the default name. If there are no unnamed dnsmasq sections the
first encountered named dnsmasq config section is assigned instead.

A similar issue exists for Dbus and was similarly addressed.

Signed-off-by: Etan Kissling <etan.kissling@gmail.com>
[tweaked commit message] dnsmasq was not crashing it is exiting
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit ba5bd8e556)
2021-07-19 22:47:23 +02:00
..
dnsmasq dnsmasq: distinct Ubus names for multiple instances 2021-07-19 22:47:23 +02:00
dropbear dropbear: bump package version 2020-12-11 13:48:24 +01:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: make wnm_sleep_mode_no_keys configurable 2021-07-05 14:04:09 -10:00
igmpproxy igmpproxy: remove some bashism 2020-06-23 20:00:16 +02:00
ipset-dns base-files: move /tmp/resolv.conf.auto to /tmp/resolv.conf.d/ 2020-01-07 15:36:03 +02:00
lldpd lldpd: fix autoreconf failure 2020-12-09 12:36:40 +01:00
odhcpd odhcpd: fix invalid DHCPv6 ADVERTSIE with small configured leasetime (FS#3935) 2021-07-19 13:26:46 +02:00
omcproxy omcproxy: define configuration file 2019-02-27 10:26:14 +01:00
ppp ppp: compile fix: unset FILTER variable in Makefile 2021-03-29 22:26:27 +02:00
relayd relayd: bump to version 2020-04-25 2020-04-26 13:00:36 +01:00
uhttpd uhttpd: update to git HEAD 2021-03-21 22:39:38 +01:00
umdns umdns: add missing syscalls to seccomp filter 2021-04-18 12:05:12 +02:00