diff options
author | Leon M. Busch-George <leon@georgemail.eu> | 2023-09-20 23:42:08 +0200 |
---|---|---|
committer | Leon M. Busch-George <leon@georgemail.eu> | 2023-09-25 15:02:49 +0200 |
commit | 25aab738efac8a4e3176012becb7500c8cb09509 (patch) | |
tree | 8a1fd6ed259b65d1fbb826a7a3050ec64d440583 /package | |
parent | 270f694f1198248109f32cb8867f2673f82072f8 (diff) | |
download | openwrt-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-x | package/base-files/files/bin/ipcalc.sh | 2 |
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) |