From 629e47c2b4474a0db278ee543d6f12e55a0c2370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 26 Jan 2015 14:04:41 +0100 Subject: [PATCH] add initial nodes --- tinc-up | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tinc-up b/tinc-up index 822bb3a..6efd47d 100755 --- a/tinc-up +++ b/tinc-up @@ -119,6 +119,7 @@ IPV6_PRIVACY="yes" TINC_AUTOCONNECT="yes" TINC_TIMEOUT="300" +INITIAL_NODES=(eve eva) source "${TINCRC}" || true @@ -149,4 +150,8 @@ tinc -c "$DIR" set AutoConnect "$TINC_AUTOCONNECT" tinc -c "$DIR" set MaxTimeout "$TINC_TIMEOUT" tinc -c "$DIR" set Mode switch +for node in $INITIAL_NODES; do + tinc -c "$DIR" set ConnectTo "$node" +done + [ -x "$LOCAL_HOOK_FILE" ] && "$LOCAL_HOOK_FILE" || true