repo: resdb action: commit revision: path_from: revision_from: 527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f: path_to: revision_to:
commit 527a2e2ab7fa215d151e2ad2dd3d05d0729e3e9f Author: d3v11Date: Sat Nov 26 20:06:20 2011 +0000 patched peer2anonet bootstrap bug diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
--- 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-----