aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/srecimage.pl
diff options
context:
space:
mode:
authorEtan Kissling <etan.kissling@gmail.com>2021-06-27 22:02:46 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2021-07-19 22:47:23 +0200
commit249aeaa9d8bb74443d5e9c4e72de3464a62b540f (patch)
treeaf265b91805a795e50502b779dc397377e5e2398 /scripts/srecimage.pl
parenta1d50e7b45080f60a0066e9ca88ad756480dd1f8 (diff)
downloadupstream-249aeaa9d8bb74443d5e9c4e72de3464a62b540f.tar.gz
upstream-249aeaa9d8bb74443d5e9c4e72de3464a62b540f.tar.bz2
upstream-249aeaa9d8bb74443d5e9c4e72de3464a62b540f.zip
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 ba5bd8e556b2e7573d27b16e005ba287e066f795)
Diffstat (limited to 'scripts/srecimage.pl')
0 files changed, 0 insertions, 0 deletions