diff options
author | uvok cheetah | 2023-08-21 18:17:09 +0200 |
---|---|---|
committer | uvok cheetah | 2023-08-21 18:17:09 +0200 |
commit | 6f07852460cf475c37dd5b2cc94857d2e9e05070 (patch) | |
tree | 0707f75d40e24dde7884f4871843228775d9891b | |
parent | 44bd2d5476d7b462a1b58dd2dd805ca761ee21a6 (diff) |
tinc: Add extra commands
-rwxr-xr-x | roles/router/templates/tinc-up.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/router/templates/tinc-up.j2 b/roles/router/templates/tinc-up.j2 index 93ab205..8c26aa9 100755 --- a/roles/router/templates/tinc-up.j2 +++ b/roles/router/templates/tinc-up.j2 @@ -2,3 +2,8 @@ ip link set $INTERFACE up ip -6 addr flush dev $INTERFACE ip addr add {{ tinc.address }} dev $INTERFACE +{% if tinc.extra_up is defined %} +{% for cmd in tinc.extra_up %} +{{ cmd }} +{% endfor %} +{% endif %} |