From: Leon M. Busch-George Date: Wed, 20 Sep 2023 21:42:08 +0000 (+0200) Subject: base-files: ipcalc.sh: make check slightly more future-proof X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=25aab738efac8a4e3176012becb7500c8cb09509;p=openwrt%2Fopenwrt.git 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 --- diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 25114219a1..827cb5dc2e 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -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)