]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: treat 'ipaddr is inside range' as warning again
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 30 Apr 2025 10:25:01 +0000 (12:25 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 29 May 2025 21:54:18 +0000 (23:54 +0200)
commit32ed3db1a0c36aeecd027ee585669ab0a390ac22
treea4631deaaf5ee06538ae7984713673a924e2c4cd
parentae198c6ba08542d7eaca41103ee86d6794039ffc
base-files: treat 'ipaddr is inside range' as warning again

The call to 'ipcalc' is used in 'dnsmasq' init script to create the
configuration. If the 'ipaddr' is in the configured range then 'ipcalc' exited
with an error whereby the START/STOP variables are unavailable.

This behaviour has changed during 'ipcalc' refactoring and now leads to a
problem when starting 'dnsmasq' if the 'ipaddr' is inside this range. To
restore the old behaviour, only a warning is issued as before and the
required variables for the 'dnsmasq' are still set.

Fixes: 854739b32c7f (base-files: ipcalc.sh: Rewrite in pure shell)
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>
package/base-files/files/bin/ipcalc.sh