From 3a3f45b5a15996fdf44ef5dee5d157a77873b240 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Thu, 19 May 2011 21:04:56 +0200 Subject: cleaned up the script mess README: added README files for the whole directory as well as the subdirs adv_graphgen/* : contains the graphgen files tinc_setup/* : contains the build script and the bootstrap script tinc_multicast/* : contains the multicast script --- hosts/.scripts/tinc_setup/install.sh | 68 ++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 hosts/.scripts/tinc_setup/install.sh (limited to 'hosts/.scripts/tinc_setup/install.sh') diff --git a/hosts/.scripts/tinc_setup/install.sh b/hosts/.scripts/tinc_setup/install.sh new file mode 100755 index 00000000..4b21bcd4 --- /dev/null +++ b/hosts/.scripts/tinc_setup/install.sh @@ -0,0 +1,68 @@ +#! /bin/sh +# USE WITH GREAT CAUTION + +set -e +myname="${1:-dummy}" +rel_hostsfile=`dirname $0`/.. +hostsfile=`readlink -f $rel_hostsfile` +netname=retiolum +myipv4="${2:-10.7.7.56}" +mynet4=10.7.7.0 +CURR=`pwd` +# create configuration directory for $netname +mkdir -p /etc/tinc/$netname +cd /etc/tinc/$netname + +# get currently known hosts +cp -r $hostsfile hosts +echo "added known hosts:" +ls -1 | LC_ALL=C sort +echo "delete the nodes you do not trust!" + + +cat>tinc-up<tinc.conf< hosts/$myname +tincd -n $netname -K + +echo Writing Public Key to irc channel +cat>write_channel.py<