Mercurial > hg > anonet-resdb
annotate scripts/add_as @ 819:f1f0ab9d41b7 draft
i changed the she-bang on configure from sh to bash because it
keeps giving people trouble:
/CA/pikaj00> ./configure: 132: Bad substitution
/CA/pikaj00> root@pikaj00-M-7323U:/services/ircd/resdb#
/relayhell/d3v11> use
/relayhell/d3v11> bash configure
/relayhell/d3v11> did you run that command on slackware?
/relayhell/d3v11> ./configure?
/CA/pikaj00> sorry
/CA/pikaj00> one sec
/CA/pikaj00> yes
/relayhell/d3v11> LOL
/relayhell/d3v11> then the problem is not ubuntu or debian
/CA/shuttle> =)
/relayhell/d3v11> if slackware has the same problem
/CA/pikaj00> bash
/CA/shuttle> what do you think pik
/CA/pikaj00> worked
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 10 Dec 2011 22:23:18 +0000 |
parents | 89b5d9e83572 |
children |
rev | line source |
---|---|
1 | 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 | 8 echo $2 > db/as/$1/owner |