Update service.sh
This commit is contained in:
@@ -4,6 +4,7 @@ MODDIR=${0%/*}
|
|||||||
|
|
||||||
ZTROOT=/data/adb/zerotier
|
ZTROOT=/data/adb/zerotier
|
||||||
ZTRUNTIME=$ZTROOT/run
|
ZTRUNTIME=$ZTROOT/run
|
||||||
|
APPROOT=/data/data/com.eventlowop.zerotier_magisk_app/files
|
||||||
|
|
||||||
pipe=$ZTRUNTIME/pipe
|
pipe=$ZTRUNTIME/pipe
|
||||||
ZTLOG=$ZTRUNTIME/zerotier.log
|
ZTLOG=$ZTRUNTIME/zerotier.log
|
||||||
@@ -66,9 +67,17 @@ cd $ZTROOT
|
|||||||
rm -f $ZTRUNTIME
|
rm -f $ZTRUNTIME
|
||||||
mkfifo $pipe
|
mkfifo $pipe
|
||||||
|
|
||||||
|
chmod 666 $pipe $cli_output $cli_pid
|
||||||
|
|
||||||
ip rule add from all lookup main pref 1
|
ip rule add from all lookup main pref 1
|
||||||
export LD_LIBRARY_PATH=/data/adb/zerotier/lib
|
export LD_LIBRARY_PATH=/data/adb/zerotier/lib
|
||||||
|
|
||||||
|
if [[ -e /data/data/com.eventlowop.zerotier_magisk_app/files ]]; then
|
||||||
|
ln -sf $pipe $APPROOT/pipe
|
||||||
|
ln -sf $cli_output $APPROOT/cli.out
|
||||||
|
ln -sf $cli_pid $APPROOT/cli.pid
|
||||||
|
fi
|
||||||
|
|
||||||
__start
|
__start
|
||||||
|
|
||||||
while true
|
while true
|
||||||
|
|||||||
Reference in New Issue
Block a user