summaryrefslogtreecommitdiff
path: root/scripts/add_as
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/add_as')
-rwxr-xr-xscripts/add_as5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/add_as b/scripts/add_as
index 5650dcc..8932700 100755
--- a/scripts/add_as
+++ b/scripts/add_as
@@ -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