summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/hosts/install.sh')
-rwxr-xr-x[-rw-r--r--]retiolum/hosts/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/retiolum/hosts/install.sh b/retiolum/hosts/install.sh
index d74636e9..ebff669d 100644..100755
--- a/retiolum/hosts/install.sh
+++ b/retiolum/hosts/install.sh
@@ -3,6 +3,7 @@
set -e
myname="${1:-dummy}"
+hostsfile=`dirname $0`/hosts.tar
netname=retiolum
myipv4="${2:-10.7.7.56}"
mynet4=10.7.7.0
@@ -12,8 +13,7 @@ mkdir -p /etc/tinc/$netname
cd /etc/tinc/$netname
# get currently known hosts
-curl http://dl.dropbox.com/u/8729977/hosts.tar | tar vx ||
-curl $GIV_URI_TO_HOSTS_TAR | tar vx
+tar xf $hostsfile
cat>tinc-up<<EOF
@@ -27,6 +27,8 @@ chmod +x tinc-up
cat>tinc.conf<<EOF
Name = $myname
ConnectTo = supernode
+ConnectTo = kaah
+ConnectTo = pa_sharepoint
Device = /dev/net/tun
EOF
echo "Subnet = $myipv4" > hosts/$myname