1
0
Fork 0
forked from mirror/openwrt
openwrt/package/network/services
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
..
bridger package: use service_running instead of service_started for ubus config 2025-03-13 11:23:03 +01:00
dnsmasq dnsmasq: fix start if dhcp-range is not correct 2025-05-29 23:54:18 +02:00
dropbear dropbear: Name pid file by uci section name 2024-12-12 20:02:38 +01:00
ead treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
hostapd hostapd: revert "ACS: Validate 6 GHz AP criteria before ACS" 2025-05-29 11:34:48 +02:00
ipset-dns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
lldpd lldpd: enable hardware inventory information (TLV) management 2025-04-11 22:51:06 +02:00
odhcpd odhcpd: update to Git HEAD (2024-05-08) 2024-05-08 00:11:19 +02:00
omcproxy package: use service_running instead of service_started for ubus config 2025-03-13 11:23:03 +01:00
ppp treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
relayd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uhttpd uhttpd: restart daemon if certificate has changed 2024-08-19 18:46:08 +02:00
umdns umdns: update to Git HEAD (2025-05-29) 2025-05-29 13:32:16 +02:00
unetd unetd: cli: add hook calls for invite/join status changes 2025-05-14 11:23:09 +02:00
unetmsg unetmsg: fix host name in response messages 2025-05-20 18:38:39 +02:00
ustp ustp: update to Git HEAD (2023-05-29) 2024-04-27 11:40:04 +02:00