openwrt/package
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
..
base-files base-files: wifi: tidy up the reconf code 2021-06-30 19:24:55 +02:00
boot ramips: add support for Linksys EA8100 v1 2021-06-10 17:09:35 +02:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware wireless-regdb: update to version 2021.04.21 2021-06-08 20:44:12 +02:00
kernel ath10k-ct: fix typo in Makefile 2021-07-02 16:19:33 +02:00
libs treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00
network dnsmasq: distinct Ubus names for multiple instances 2021-07-19 22:47:23 +02:00
system treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00
utils treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00