base-files: ipcalc.sh: Should take netmask or prefix after slash
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 19 Nov 2023 19:26:15 +0000 (12:26 -0700)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 19 Nov 2023 20:36:40 +0000 (20:36 +0000)
commit1481d5cb0b70d15edea607ed7cfc718c85166e98
tree3cd56a17755bea91b7c5bdf4f90d4fd1c8fea9e2
parente9ac1b19e0f3d383ab83373c261bfb5527a29521
base-files: ipcalc.sh: Should take netmask or prefix after slash

dnmasq.init now invokes ipcalc.sh as either:

ipcalc.sh address/netmask ...

or:

ipcalc.sh address/prefix

but the existing version doesn't accept the 2nd notation.  We're
trying to rationalize the usage of ipcalc.sh, and here we add
support for the 2nd format.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
package/base-files/files/bin/ipcalc.sh