From b5e16e476f1665b88f4d24f17369a598a7062c89 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Mon, 29 Oct 2012 04:50:41 +0000 Subject: [peer2anonet] fck gentoo --- contrib/peer2anonet/peer2anonet | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'contrib/peer2anonet') diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index 340c3c2..146770f 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -431,8 +431,14 @@ SETUP_QMAIL(){ echo "ip addr add $MX_IP/32 dev lo &" >> /etc/rc.d/rc.local fi else - echo " fatal error: cannot reliably assign ip's to startup" - exit 1 + ( + mkdir -p /services/qmail-ips + echo "#!/bin/sh -e" > /services/qmail-ips/run + echo "ip addr add $MX_IP/32 dev lo &" >> /services/qmail-ips/run + echo "svc -d ." /services/qmail-ips/run + chmod +x /services/qmail-ips/run + test -L /service/qmail-ips || ln -s /services/qmail-ips /service/qmail-ips + ) fi ip addr add $MX_IP/32 dev lo > /dev/null 2>&1 @@ -623,17 +629,17 @@ CONFIGURE_DNS(){ 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 - useradd Gdnscache - useradd Gdnslog - useradd Gtinydns + useradd gdnscache + useradd gdnslog + useradd gtinydns - dnscache-conf Gdnscache Gdnslog /services/dnscache + dnscache-conf gdnscache gdnslog /services/dnscache mv /services/dnscache/root/servers/@ /services/dnscache/root/servers/@.icann echo $TINYDNS_ROOT_IP >/services/dnscache/root/servers/@ echo 'nameserver 127.0.0.1' >/etc/resolv.conf - tinydns-conf Gtinydns Gdnslog /services/tinydns $TINYDNS_IP + tinydns-conf gtinydns gdnslog /services/tinydns $TINYDNS_IP ( cd /services/tinydns/root ./add-ns $NICK.ano $TINYDNS_IP @@ -643,11 +649,11 @@ CONFIGURE_DNS(){ make ) - tinydns-conf Gtinydns Gdnslog /services/tinydns-root $TINYDNS_ROOT_IP + tinydns-conf gtinydns gdnslog /services/tinydns-root $TINYDNS_ROOT_IP ./scripts/nameserver_autogen/tinydns_root_datafile > /services/tinydns-root/root/data ( cd /services/tinydns-root/root ; make ) - tinydns-conf Gtinydns Gdnslog /services/tinydns-ano $TINYDNS_ANO_IP + tinydns-conf gtinydns gdnslog /services/tinydns-ano $TINYDNS_ANO_IP ./scripts/nameserver_autogen/tinydns_tld_datafile > /services/tinydns-ano/root/data ( cd /services/tinydns-ano/root ; make ) -- cgit v1.2.3