openwrt/package
Etan Kissling ba5bd8e556 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>
2021-06-29 11:27:26 +01:00
..
base-files base-files: wifi: tidy up the reconf code 2021-06-28 17:24:15 +02:00
boot grub2: update to 2.06 2021-06-21 09:02:26 -10:00
devel binutils: update to 2.35.2 2021-05-23 15:11:38 +02:00
firmware linux-firmware: update to 20210511 2021-06-08 00:38:41 +02:00
kernel mac80211: print an error if wifi teardown fails 2021-06-28 17:24:11 +02:00
libs ustream-ssl: variants conflict with each other 2021-06-21 18:48:03 -10:00
network dnsmasq: distinct Ubus names for multiple instances 2021-06-29 11:27:26 +01:00
system zram-swap: clean up the log messages 2021-06-27 14:49:14 -10:00
utils busybox: sysntpd: add trigger to reload server 2021-06-27 23:54:06 +02:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00