annotate scripts/add_as @ 907:8b28a5f63600 draft

Merge commit 'e8cb9da4f1c911c1ce9eda54e92404dc95a7b648'
author Nick <nick@somerandomnick.ano>
date Sun, 29 Jan 2012 09:22:15 +0000
parents 89b5d9e83572
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2ab24943b339 added ASNs from old database
Nick <nick@somerandomnick.ano>
parents:
diff changeset
1 #!/bin/sh
5
64ff04884b0f made scripts/add_as a bit less user-unfriendly
Nick <nick@somerandomnick.ano>
parents: 1
diff changeset
2
64ff04884b0f made scripts/add_as a bit less user-unfriendly
Nick <nick@somerandomnick.ano>
parents: 1
diff changeset
3 if [ x"$2" = x ]; then
64ff04884b0f made scripts/add_as a bit less user-unfriendly
Nick <nick@somerandomnick.ano>
parents: 1
diff changeset
4 echo "Usage: $0 <ASN> <owner>" >&2; exit 255
64ff04884b0f made scripts/add_as a bit less user-unfriendly
Nick <nick@somerandomnick.ano>
parents: 1
diff changeset
5 fi
64ff04884b0f made scripts/add_as a bit less user-unfriendly
Nick <nick@somerandomnick.ano>
parents: 1
diff changeset
6
18
89b5d9e83572 changed scripts/add_as to refuse to clobber an existing AS
Nick <nick@somerandomnick.ano>
parents: 5
diff changeset
7 mkdir db/as/$1 || exit 1
1
2ab24943b339 added ASNs from old database
Nick <nick@somerandomnick.ano>
parents:
diff changeset
8 echo $2 > db/as/$1/owner