# HG changeset patch # User d3v11 # Date 1322509756 0 # Node ID 4a4ba4a2061d9022a101960dee7a7692ba8b6712 # Parent 18040cd350e10bdd1853955861d11bf294086061 updates to peer2anonet diff -r 18040cd350e1 -r 4a4ba4a2061d contrib/peer2anonet/peer2anonet --- a/contrib/peer2anonet/peer2anonet Mon Nov 28 08:56:10 2011 +0000 +++ b/contrib/peer2anonet/peer2anonet Mon Nov 28 19:49:16 2011 +0000 @@ -401,15 +401,23 @@ GIT_IP=`cat conf/gitd_ip` GIT_DOMAIN="git.$NICK.ano" - ip addr add $TINYDNS_ROOT_IP/32 dev lo & - ip addr add $TINYDNS_IP/32 dev lo & - ip addr add $TINYDNS_ANO_IP/32 dev lo & - ip addr add $GIT_IP/32 dev lo & + ip addr add $TINYDNS_ROOT_IP/32 dev lo > /dev/null 2>&1 + ip addr add $TINYDNS_IP/32 dev lo > /dev/null 2>&1 + ip addr add $TINYDNS_ANO_IP/32 dev lo > /dev/null 2>&1 + ip addr add $GIT_IP/32 dev lo > /dev/null 2>&1 - echo "ip addr add $TINYDNS_ROOT_IP/32 dev lo &" >> /etc/rc.local - echo "ip addr add $TINYDNS_IP/32 dev lo &" >> /etc/rc.local - echo "ip addr add $TINYDNS_ANO_IP/32 dev lo &" >> /etc/rc.local - echo "ip addr add $GIT_IP/32 dev lo &" >> /etc/rc.local + if [[ $(cat /etc/rc.local) != *"ip addr add $TINYDNS_ROOT_IP/32 dev lo &"* ]]; then + echo "ip addr add $TINYDNS_ROOT_IP/32 dev lo &" >> /etc/rc.local + fi + if [[ $(cat /etc/rc.local) != *"ip addr add $TINYDNS_IP/32 dev lo &"* ]]; then + echo "ip addr add $TINYDNS_IP/32 dev lo &" >> /etc/rc.local + fi + if [[ $(cat /etc/rc.local) != *"ip addr add $TINYDNS_ANO_IP/32 dev lo &"* ]]; then + echo "ip addr add $TINYDNS_ANO_IP/32 dev lo &" >> /etc/rc.local + fi + if [[ $(cat /etc/rc.local) != *"ip addr add $GIT_IP/32 dev lo &"* ]]; then + echo "ip addr add $GIT_IP/32 dev lo &" >> /etc/rc.local + fi useradd Gdnscache useradd Gdnslog