diff options
| author | Leon M. Busch-George | 2023-08-20 19:08:20 +0000 |
|---|---|---|
| committer | Leon M. Busch-George | 2023-09-25 13:02:49 +0000 |
| commit | 270f694f1198248109f32cb8867f2673f82072f8 (patch) | |
| tree | 591f8c08467d503dea1911b8aacf8cb12183da9c | |
| parent | d7978e1f39aa91c4c99cab4f13372050afad2438 (diff) | |
base-files: ipcalc.sh: turn error into warning
Some users have their routers configured to supply a DHCP range that
includes the local interface address.
That worked with dnsmasq because it automatically skips the local
address.
Re-enable those existing configurations for the release and hint at
possible future problems.
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
[ wrap commit description and remove unecessary text ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rwxr-xr-x | package/base-files/files/bin/ipcalc.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 0132e8d9bf..25114219a1 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -90,8 +90,9 @@ BEGIN { } if (ipaddr > start && ipaddr < end) { - print "ipaddr inside range" > "/dev/stderr" - exit(1) + print "warning: ipaddr inside range - this might not be supported in future releases of Openwrt" > "/dev/stderr" + # turn this into an error after Openwrt 24 has been released + # exit(1) } print "START="int2ip(start) |