diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 16:48:50 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-12 16:48:50 +0100 |
commit | dbf5d2834a4e912a9787201313219a817b5c26a4 (patch) | |
tree | 8de977a5d8fc8995f1d7e5c2757c9eb3904ecf37 /ImmaeEu-down | |
parent | e9be45fa1cc955ff8a0e497f8fd3ed7521d0b5a1 (diff) | |
download | hosts-dbf5d2834a4e912a9787201313219a817b5c26a4.tar.gz hosts-dbf5d2834a4e912a9787201313219a817b5c26a4.tar.zst hosts-dbf5d2834a4e912a9787201313219a817b5c26a4.zip |
Adjust scripts to remove the need of tinc_domaine
Diffstat (limited to 'ImmaeEu-down')
-rwxr-xr-x | ImmaeEu-down | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ImmaeEu-down b/ImmaeEu-down index d5e9ccf..8dc9fc4 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down | |||
@@ -1,11 +1,12 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # This file closes down the tap device. | 2 | # This file closes down the tap device. |
3 | 3 | ||
4 | . /tmp/tinc_$NETNAME | 4 | [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME |
5 | rm -f /tmp/tinc_$NETNAME | 5 | [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars |
6 | ip -6 route del default via $GWIP | 6 | rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars |
7 | for MYIP in $MYIPS; do | 7 | [ -n "$GWIP" ] && ip -6 route del default via $GWIP |
8 | ip -6 addr del $MYIP/96 dev $INTERFACE | 8 | for MYIP in "$MYIPS"; do |
9 | ip -6 addr del $MYIP/96 dev $INTERFACE | ||
9 | done | 10 | done |
10 | ip -6 link set $INTERFACE down | 11 | ip -6 link set $INTERFACE down |
11 | 12 | ||