[fix] NDK pthread_np support
This commit is contained in:
@@ -21,6 +21,11 @@ _stop() {
|
||||
fi
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
# delete from ip rules
|
||||
ip rule del from all lookup main pref 1
|
||||
ip -6 rule del from all lookup main pref 1
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
log "kill zerotier-one failed"
|
||||
return
|
||||
|
||||
@@ -13,5 +13,10 @@ PIPE_APP=$APPROOT/run/pipe
|
||||
export LD_LIBRARY_PATH=/system/lib64:/data/adb/zerotier/lib
|
||||
|
||||
__start() {
|
||||
# add main route table to lookup rules
|
||||
ip rule add from all lookup main pref 1
|
||||
ip -6 rule add from all lookup main pref 1
|
||||
|
||||
# start zerotier daemon
|
||||
nohup $ZTROOT/zerotier-one -d >> $ZT_LOG 2>&1 &
|
||||
}
|
||||
@@ -33,11 +33,6 @@ mkdir -p $ZTROOT/run
|
||||
# start zerotier
|
||||
# ----------------------------------------------
|
||||
|
||||
# add main route table to lookup rules
|
||||
ip rule add from all lookup main pref 1
|
||||
ip -6 rule add from all lookup main pref 1
|
||||
|
||||
# start zerotier
|
||||
__start
|
||||
|
||||
# ----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user