summaryrefslogblamecommitdiff
path: root/ImmaeEu-down
blob: 8dc9fc405c611f47706afae13511a3419d243ae9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                       





                                                           


                              
#!/bin/sh
# This file closes down the tap device.

[ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME
[ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars
rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars
[ -n "$GWIP" ] && ip -6 route del default via $GWIP
for MYIP in "$MYIPS"; do
  ip -6 addr del $MYIP/96 dev $INTERFACE
done
ip -6 link set $INTERFACE down