diff options
| author | Leon M. Busch-George | 2023-09-20 21:42:08 +0000 |
|---|---|---|
| committer | Leon M. Busch-George | 2023-09-25 13:02:49 +0000 |
| commit | 25aab738efac8a4e3176012becb7500c8cb09509 (patch) | |
| tree | 8a1fd6ed259b65d1fbb826a7a3050ec64d440583 | |
| parent | 270f694f1198248109f32cb8867f2673f82072f8 (diff) | |
| download | openwrt-25aab738efac8a4e3176012becb7500c8cb09509.tar.gz | |
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>
| -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) |