From 298546b3ad1686de61fd3a7292cd5bccb0576788 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Sun, 27 Mar 2011 22:20:57 +0200 Subject: added install script --- hosts/install.sh | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 hosts/install.sh (limited to 'hosts') diff --git a/hosts/install.sh b/hosts/install.sh new file mode 100644 index 00000000..d347a4c6 --- /dev/null +++ b/hosts/install.sh @@ -0,0 +1,61 @@ +! /bin/sh + +set -e +myname="${1:-dummy}" +netname=retiolum +myipv4="${2:-10.7.7.56}" +mynet4=10.7.7.0 + +# create configuration directory for $netname +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 + + +cat>tinc-up<tinc.conf< hosts/$myname +tincd -n $netname -K + +echo Writing Public Key to irc channel +cat>write_channel.py<