# HG changeset patch # User d3v11 # Date 1322337980 0 # Node ID f9c3f2b6a6b1a8f5aaac561670948b7f1571de97 # Parent 49208db8c8f2ce62b0d40a77cff8b8cb432e990f patched peer2anonet bootstrap bug diff -r 49208db8c8f2 -r f9c3f2b6a6b1 contrib/peer2anonet/peer2anonet --- a/contrib/peer2anonet/peer2anonet Sat Nov 26 19:04:16 2011 +0000 +++ b/contrib/peer2anonet/peer2anonet Sat Nov 26 20:06:20 2011 +0000 @@ -30,13 +30,6 @@ 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 @@ ( 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