diff options
Diffstat (limited to 'ImmaeEu-down')
-rwxr-xr-x | ImmaeEu-down | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ImmaeEu-down b/ImmaeEu-down new file mode 100755 index 0000000..8e562a4 --- /dev/null +++ b/ImmaeEu-down | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/sh | ||
2 | # This file closes down the tap device. | ||
3 | |||
4 | source /tmp/tinc_$NETNAME | ||
5 | rm -f /tmp/tinc_$NETNAME | ||
6 | ip -6 route del default via $GWIP | ||
7 | for MYIP in $MYIPS; do | ||
8 | ip -6 addr del $MYIP/96 dev $INTERFACE | ||
9 | done | ||
10 | ip -6 link set $INTERFACE down | ||
11 | |||