[v1.0.11] Use new magisk module installer, fix bug in magisk 20.4 NOT auto run service.sh.

This commit is contained in:
Whale Choi
2020-03-26 05:23:33 +08:00
parent 3210c2d863
commit 3108beedc9
13 changed files with 425 additions and 348 deletions

View File

@@ -145,8 +145,6 @@
},
"servers": [
"1.1.1.1",
"8.8.8.8",
"9.9.9.9",
{
"address": "114.114.114.114",
"port": 53,

View File

@@ -145,8 +145,6 @@
},
"servers": [
"1.1.1.1",
"8.8.8.8",
"9.9.9.9",
{
"address": "114.114.114.114",
"port": 53,

View File

@@ -1,4 +1,2 @@
nameserver 114.114.114.114
nameserver 223.5.5.5
nameserver 1.1.1.1
nameserver 9.9.9.9

15
v2ray/scripts/start.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/system/bin/sh
MODDIR=${0%/*}
start_proxy () {
${MODDIR}/v2ray.service start &> /data/v2ray/run/service.log && \
if [ -f /data/v2ray/appid.list ] || [ -f /data/v2ray/softap.list ] ; then
${MODDIR}/v2ray.tproxy enable &>> /data/v2ray/run/service.log && \
${MODDIR}/v2ray-dns.service start &>> /data/v2ray/run/service.log &
fi
}
if [ ! -f /data/v2ray/manual ] ; then
start_proxy
fi
inotifyd ${MODDIR}/v2ray.inotify ${MODDIR}/.. &>> /data/v2ray/run/service.log &