base-files: ipcalc.sh: make check slightly more future-proof

The previous code handling the equal-condition might be removed or
altered in the future and the case might be overlooked.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
This commit is contained in:
Leon M. Busch-George 2023-09-20 23:42:08 +02:00
parent 270f694f11
commit 25aab738ef

View File

@ -89,7 +89,7 @@ BEGIN {
exit(1)
}
if (ipaddr > start && ipaddr < end) {
if (ipaddr >= start && ipaddr <= end) {
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)