summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-04-09 03:02:49 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-04-09 03:02:49 +0200
commitee087cae17be9bc2a02fcc27c325b214e5497e40 (patch)
tree2a722d33bf21046f4a41138e3f08b09a8b4380c4 /install.sh
parente0fc63028f69ddcca3814de7b35ce343fa10c888 (diff)
cleaned up repo,added hosts file (no external deps)
Diffstat (limited to 'install.sh')
-rwxr-xr-x[-rw-r--r--]install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index d74636e9..ebff669d 100644..100755
--- a/install.sh
+++ b/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