repo: resdb
action: commit
revision: 
path_from: 
revision_from: 527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f:
path_to: 
revision_to: 
git.thebackupbox.net
resdb
git clone git://git.thebackupbox.net/resdb
commit 527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f
Author: d3v11 
Date:   Sat Nov 26 20:06:20 2011 +0000

    patched peer2anonet bootstrap bug

diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index dd8a76a4aeff037e2a1481e46c3e720235b679ac..
index ..e7049139b08585c75d10e3409922d7a8f4dfd6c6 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

-----END OF PAGE-----