base-files: ipcalc.sh: correctly interpret num parameter
authorLeon M. Busch-George <leon@georgemail.eu>
Fri, 16 Jun 2023 12:53:09 +0000 (14:53 +0200)
committerLeon M. Busch-George <leon@georgemail.eu>
Mon, 25 Sep 2023 13:02:49 +0000 (15:02 +0200)
commit9e8bbd4265271612732c0804065ce8bf4939e8c0
tree1521e492c1c080c926b99109e6f61b545563e287
parent658549837282d0ca9decfdaf599fc67bf90418c6
base-files: ipcalc.sh: correctly interpret num parameter

The start and end addresses are inclusive.
Thus, adding num without substracting one results in num + 1 addresses.
Add the substraction and to implement the documented behaviour.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
package/base-files/files/bin/ipcalc.sh