From d2ce18954f19edccf23dddf76c737cd76ca7881e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 May 2011 02:15:17 +0200 Subject: prepare .scripts for import into krebscode --- modules/retiolum/scripts/tinc_setup/install.sh | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 modules/retiolum/scripts/tinc_setup/install.sh (limited to 'modules/retiolum/scripts/tinc_setup/install.sh') diff --git a/modules/retiolum/scripts/tinc_setup/install.sh b/modules/retiolum/scripts/tinc_setup/install.sh new file mode 100755 index 00000000..89465b64 --- /dev/null +++ b/modules/retiolum/scripts/tinc_setup/install.sh @@ -0,0 +1,67 @@ +#! /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<