diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-11-28 19:49:16 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-11-28 19:49:16 +0000 |
commit | 7965217d61e03d84a51f8ae284c6a9fbe655134c (patch) | |
tree | 720ba28a6473d529357e3ade1ac833939c04c897 /contrib | |
parent | b415dff970c2cf4b409aa57847512b8bbb31d8e3 (diff) | |
download | resdb-7965217d61e03d84a51f8ae284c6a9fbe655134c.tar.gz resdb-7965217d61e03d84a51f8ae284c6a9fbe655134c.zip |
updates to peer2anonet
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/peer2anonet/peer2anonet | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index 7525b01..7fdc78e 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -401,15 +401,23 @@ CONFIGURE_DNS(){ 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 & - - 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 + 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 + + 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 |