summaryrefslogtreecommitdiff
path: root/ImmaeEu-down
diff options
context:
space:
mode:
Diffstat (limited to 'ImmaeEu-down')
-rwxr-xr-xImmaeEu-down11
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
4source /tmp/tinc_$NETNAME
5rm -f /tmp/tinc_$NETNAME
6ip -6 route del default via $GWIP
7for MYIP in $MYIPS; do
8 ip -6 addr del $MYIP/96 dev $INTERFACE
9done
10ip -6 link set $INTERFACE down
11