From 9b1e94e651bfcde956a527dbd95467f7e08613db Mon Sep 17 00:00:00 2001 From: krebs Date: Wed, 4 May 2011 10:03:10 -1100 Subject: modules/retiolum: add retiolum config scripts into subfolder --- modules/retiolum/install.sh | 68 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 modules/retiolum/install.sh (limited to 'modules/retiolum/install.sh') diff --git a/modules/retiolum/install.sh b/modules/retiolum/install.sh new file mode 100755 index 00000000..5fa1d4a5 --- /dev/null +++ b/modules/retiolum/install.sh @@ -0,0 +1,68 @@ +#! /bin/sh +# USE WITH GREAT CAUTION + +set -e +myname="${1:-dummy}" +rel_hostsfile=`dirname $0`/hosts +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 . +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<