blob: 8a0ef220f5d7d18a2f7ba7fec933dc05f238d08b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/system/xbin/sh
# This file closes down the tap device.
source /sdcard/.tinc/vars
rm /sdcard/.tinc/vars
ip -6 rule del from all lookup 100
ip route del table 100 $REMOTEADDRESS
ip -6 route del table 100 $GWIP dev vpn6
ip -6 route del table 100 ::/1 via $GWIP dev vpn6
for MYIP in $MYIPS; do
ip -6 addr del $MYIP/96 dev vpn6
done
ip -6 link set vpn6 down
|