summaryrefslogtreecommitdiff
path: root/ImmaeEu-down
diff options
context:
space:
mode:
Diffstat (limited to 'ImmaeEu-down')
-rw-r--r--[-rwxr-xr-x]ImmaeEu-down18
1 files changed, 11 insertions, 7 deletions
diff --git a/ImmaeEu-down b/ImmaeEu-down
index 8459778..1b6260e 100755..100644
--- a/ImmaeEu-down
+++ b/ImmaeEu-down
@@ -1,12 +1,16 @@
1#!/bin/sh 1#!/system/xbin/sh
2# This file closes down the tap device. 2# This file closes down the tap device.
3 3
4[ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME 4source /sdcard/.tinc/vars
5[ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars 5rm /sdcard/.tinc/vars
6rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars 6
7[ -n "$GWIP" ] && ip -6 route del default via $GWIP 7ip -6 rule del from all lookup 100
8ip route del table 100 $REMOTEADDRESS
9ip -6 route del table 100 $GWIP dev vpn6
10ip -6 route del table 100 ::/1 via $GWIP dev vpn6
8for MYIP in $MYIPS; do 11for MYIP in $MYIPS; do
9 ip -6 addr del $MYIP/96 dev $INTERFACE 12 ip -6 addr del $MYIP/96 dev vpn6
10done 13done
11ip -6 link set $INTERFACE down 14ip -6 link set vpn6 down
15
12 16