From fa752fe606ec2d91ca69db0c0f7eb6de7fae4860 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 27 May 2011 16:05:09 +0200 Subject: retiolum//tinc_setup: cp tinc-up --- modules/retiolum/scripts/tinc_setup/install.sh | 16 ++-------------- modules/retiolum/scripts/tinc_setup/tinc-up | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 14 deletions(-) create mode 100755 modules/retiolum/scripts/tinc_setup/tinc-up (limited to 'modules/retiolum/scripts/tinc_setup') diff --git a/modules/retiolum/scripts/tinc_setup/install.sh b/modules/retiolum/scripts/tinc_setup/install.sh index b7679041..f472f217 100755 --- a/modules/retiolum/scripts/tinc_setup/install.sh +++ b/modules/retiolum/scripts/tinc_setup/install.sh @@ -5,8 +5,7 @@ make -C ../../ update set -e - -CURR=`pwd` +CURR=`dirname "$0"` MYBIN=../../bin netname=penisland # create configuration directory for $netname @@ -49,18 +48,7 @@ else echo "own host file already exists! will not write again!" fi - -myipv6=${myipv6:-`sed -rn 's|^Subnet *= *(42:[0-9A-Fa-f:]*/128)|\1|p' /etc/tinc/$netname/hosts/$myname`} - -cat>tinc-up<tinc.conf<