summaryrefslogtreecommitdiff
path: root/roles/router/templates/tinc-up.j2
blob: 8c26aa99438710985db6fd8f864265fd4b330bd4 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
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 %}