changeset 5:64ff04884b0f draft

made scripts/add_as a bit less user-unfriendly
author Nick <nick@somerandomnick.ano>
date Sun, 18 Apr 2010 05:24:10 +0000
parents 0c47b09f1911
children bd30b52163c5
files scripts/add_as
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/add_as	Sun Apr 18 05:21:33 2010 +0000
+++ b/scripts/add_as	Sun Apr 18 05:24:10 2010 +0000
@@ -1,3 +1,8 @@
 #!/bin/sh
+
+if [ x"$2" = x ]; then
+ echo "Usage: $0 <ASN> <owner>" >&2; exit 255
+fi
+
 mkdir -p db/as/$1 || exit 1
 echo $2 > db/as/$1/owner