#! /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<