summaryrefslogtreecommitdiff
path: root/scripts/cidr2hex
blob: 36974e007620d7a10ee838db2c20ae14eb49a709 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

if [ x"$1" = x ]; then
 echo "Usage: $0 <cidr>" >&2; exit 255
fi

./scripts/ip2hex "$(./scripts/cidr2ip "$1")"