# HG changeset patch # User Nick # Date 1288232692 0 # Node ID 13b137e470cb123f4ff03fddabb6dc2179eada13 # Parent 350b492e829588949fe3876ff765c87142592796 added ns2ip script (to make it easy to fix the dnsmasq autogen script) diff -r 350b492e8295 -r 13b137e470cb scripts/ns2ip --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/ns2ip Thu Oct 28 02:24:52 2010 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +opt="$1" +if [ "x$opt" = "x-f" ]; then + shift +elif ! ./scripts/check_db_safety; then + exit 1 +fi +ns="$1" + +path="`find db/dom/ -ipath '*/ns/'\"$ns\" -size +1c | head -n 1`" +if [ "x$path" = "x" ]; then + exit 1 +fi +cat "$path"