summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorLeon M. Busch-George <leon@georgemail.eu>2023-09-20 23:42:08 +0200
committerLeon M. Busch-George <leon@georgemail.eu>2023-09-25 15:02:49 +0200
commit25aab738efac8a4e3176012becb7500c8cb09509 (patch)
tree8a1fd6ed259b65d1fbb826a7a3050ec64d440583 /package
parent270f694f1198248109f32cb8867f2673f82072f8 (diff)
downloadopenwrt-25aab738efac8a4e3176012becb7500c8cb09509.tar.gz
openwrt-25aab738efac8a4e3176012becb7500c8cb09509.tar.bz2
openwrt-25aab738efac8a4e3176012becb7500c8cb09509.zip
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>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/bin/ipcalc.sh2
1 files changed, 1 insertions, 1 deletions
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)