diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2015-06-13 22:25:37 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2015-06-13 22:25:37 +0200 |
commit | 5618bf796685355b38edade948221e713f0f99f8 (patch) | |
tree | 5021cd59468f94614cc41ab569883f71cea45d24 /ImmaeEu-down | |
download | hosts-5618bf796685355b38edade948221e713f0f99f8.tar.gz hosts-5618bf796685355b38edade948221e713f0f99f8.tar.zst hosts-5618bf796685355b38edade948221e713f0f99f8.zip |
Commit initial
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 | |||