add initial nodes
This commit is contained in:
parent
4ed2b83cc6
commit
629e47c2b4
5
tinc-up
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user