From 7e5469a0dee1fbaf661720fc330d47d992f1d8fe Mon Sep 17 00:00:00 2001 From: cathugger Date: Fri, 10 Mar 2017 03:30:16 +0000 Subject: add muh nameserver, some script tweaks --- scripts/cidr2hex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/cidr2hex') diff --git a/scripts/cidr2hex b/scripts/cidr2hex index 36974e0..7a84522 100755 --- a/scripts/cidr2hex +++ b/scripts/cidr2hex @@ -4,4 +4,6 @@ if [ x"$1" = x ]; then echo "Usage: $0 " >&2; exit 255 fi -./scripts/ip2hex "$(./scripts/cidr2ip "$1")" +dn=$(dirname "$0") +ip=$("$dn"/cidr2ip "$1") || exit 1 +"$dn"/ip2hex "$ip" -- cgit v1.2.3