summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2011-11-26 20:06:20 +0000
committerd3v11 <d3v11@d3v11.ano>2011-11-26 20:06:20 +0000
commit527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f (patch)
treeefb3ff40b2aabe2650c5dc2844b82ed510e752f9 /contrib
parent24cc26d124dd44e9c3c1c842c5d14bbd04307f20 (diff)
downloadresdb-527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f.tar.gz
resdb-527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f.zip
patched peer2anonet bootstrap bug
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/peer2anonet/peer2anonet14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index dd8a76a..e704913 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -30,13 +30,6 @@ mkdir -p /services/bird
mkdir -p /etc/peer2anonet
mkdir -p /etc/peer2anonet/peers
-if [ -e /etc/peer2anonet/p2a.conf ]; then
- source /etc/peer2anonet/p2a.conf
-else
- echo "peer2anonet: needs --configure prior to usage"
- exit 1
-fi
-
CONFIGURE(){
echo -e '\nCONFIGURE:\n'
read -p " Enter your AnoNet subnet: " P2A_NET
@@ -397,6 +390,13 @@ CONFIGURE_DNS(){
( cd /service ; svc -t dnscache tinydns* )
}
+if [ -e /etc/peer2anonet/p2a.conf ]; then
+ source /etc/peer2anonet/p2a.conf
+else
+ CONFIGURE
+ exit 0
+fi
+
if [ "$1" == '--configure' ]; then
CONFIGURE