]> git.immae.eu Git - perso/Immae/Config/tinc/hosts.git/blob - ImmaeEu-down
Re-put Jabbah
[perso/Immae/Config/tinc/hosts.git] / ImmaeEu-down
1 #!/bin/sh
2 # This file closes down the tap device.
3
4 [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME
5 [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars
6 rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars
7 [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655
8 for MYIP in $MYIPS; do
9 ip -6 addr del $MYIP/96 dev $INTERFACE
10 ip -6 rule del from $MYIP/96 table 655
11 ip -6 rule del to $MYIP/96 table 655
12 done
13 ip -6 link set $INTERFACE down
14