Mercurial > hg > anonet-resdb
comparison scripts/add_as @ 18:89b5d9e83572 draft
changed scripts/add_as to refuse to clobber an existing AS
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Fri, 23 Apr 2010 14:23:09 +0000 |
parents | 64ff04884b0f |
children |
comparison
equal
deleted
inserted
replaced
17:bb095d5da407 | 18:89b5d9e83572 |
---|---|
2 | 2 |
3 if [ x"$2" = x ]; then | 3 if [ x"$2" = x ]; then |
4 echo "Usage: $0 <ASN> <owner>" >&2; exit 255 | 4 echo "Usage: $0 <ASN> <owner>" >&2; exit 255 |
5 fi | 5 fi |
6 | 6 |
7 mkdir -p db/as/$1 || exit 1 | 7 mkdir db/as/$1 || exit 1 |
8 echo $2 > db/as/$1/owner | 8 echo $2 > db/as/$1/owner |