From 5618bf796685355b38edade948221e713f0f99f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 13 Jun 2015 22:25:37 +0200 Subject: Commit initial --- ImmaeEu-down | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ImmaeEu-down (limited to 'ImmaeEu-down') diff --git a/ImmaeEu-down b/ImmaeEu-down new file mode 100755 index 0000000..8e562a4 --- /dev/null +++ b/ImmaeEu-down @@ -0,0 +1,11 @@ +#!/bin/sh +# This file closes down the tap device. + +source /tmp/tinc_$NETNAME +rm -f /tmp/tinc_$NETNAME +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 + -- cgit v1.2.3