Mercurial > hg > anonet-resdb
comparison scripts/ns2ip @ 230:13b137e470cb draft
added ns2ip script (to make it easy to fix the dnsmasq autogen script)
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Thu, 28 Oct 2010 02:24:52 +0000 |
parents | |
children | 2f57d4d36759 |
comparison
equal
deleted
inserted
replaced
228:350b492e8295 | 230:13b137e470cb |
---|---|
1 #!/bin/sh | |
2 | |
3 opt="$1" | |
4 if [ "x$opt" = "x-f" ]; then | |
5 shift | |
6 elif ! ./scripts/check_db_safety; then | |
7 exit 1 | |
8 fi | |
9 ns="$1" | |
10 | |
11 path="`find db/dom/ -ipath '*/ns/'\"$ns\" -size +1c | head -n 1`" | |
12 if [ "x$path" = "x" ]; then | |
13 exit 1 | |
14 fi | |
15 cat "$path" |