difos/package/network/services/dnsmasq/files
Florian Eckert ae198c6ba0 dnsmasq: fix start if dhcp-range is not correct
If the uci 'dhcp' configuration for the dhcp leases is incorrect then
the call to 'ipclac' fails. However, the problem is that the dnsmasq
configuration option 'dhcp-range' is still written for this uci section
even though the information generated by ipcalc is incorrect or not set.

Due to the incorrectly generated configuration for dnsmasq, the service
cannot start.

To prevent an incorrect configuration from being written to the configuration,
a check is now made beforehand to ensure that the required variables are
present and valid. If the configuration is incorrect, a message is emitted
to the log that this configuration section is incorrect and this uci
configuration section is omitted.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/18641
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-05-29 23:54:18 +02:00
..
50-dnsmasq-migrate-ipset.sh dnsmasq: add uci-defaults script for ipset migration 2022-11-06 19:47:13 +00:00
50-dnsmasq-migrate-resolv-conf-auto.sh dnsmasq: fix uci-defaults script to exit 0 so it is cleaned up 2020-02-19 22:02:59 +01:00
dhcp-script.sh dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
dhcp.conf dnsmasq: set an increased cachesize default value 2023-01-21 11:13:44 +01:00
dhcpbogushostname.conf dnsmasq: add dhcp-ignore-names support - CERT VU#598349 2018-10-09 09:45:16 +01:00
dnsmasq.conf packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
dnsmasq.init dnsmasq: fix start if dhcp-range is not correct 2025-05-29 23:54:18 +02:00
dnsmasq_acl.json dnsmasq: add ubus acl to allow calls to hotplug.tftp object 2021-11-12 15:02:58 +00:00
dnsmasqsec.hotplug dnsmasq: switch to ubus-based hotplug call 2021-02-08 00:57:14 +00:00
rfc6761.conf dnsmasq: remove example domains from rfc6761.conf (FS#1447) 2018-04-09 17:35:17 +02:00