summaryrefslogtreecommitdiff
path: root/ImmaeEu-down
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2015-06-13 22:25:37 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2015-06-13 22:25:37 +0200
commit5618bf796685355b38edade948221e713f0f99f8 (patch)
tree5021cd59468f94614cc41ab569883f71cea45d24 /ImmaeEu-down
downloadhosts-5618bf796685355b38edade948221e713f0f99f8.tar.gz
hosts-5618bf796685355b38edade948221e713f0f99f8.tar.zst
hosts-5618bf796685355b38edade948221e713f0f99f8.zip
Commit initial
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