add initial nodes

This commit is contained in:
Jörg Thalheim 2015-01-26 14:04:41 +01:00
parent 4ed2b83cc6
commit 629e47c2b4

View File

@ -119,6 +119,7 @@ IPV6_PRIVACY="yes"
TINC_AUTOCONNECT="yes" TINC_AUTOCONNECT="yes"
TINC_TIMEOUT="300" TINC_TIMEOUT="300"
INITIAL_NODES=(eve eva)
source "${TINCRC}" || true 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 MaxTimeout "$TINC_TIMEOUT"
tinc -c "$DIR" set Mode switch 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 [ -x "$LOCAL_HOOK_FILE" ] && "$LOCAL_HOOK_FILE" || true