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-Tag: v24.10.0-rc1~4127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12925%2Fhead;p=thirdparty%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 25114219a10..827cb5dc2ea 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)