[fix] NDK pthread_np support

This commit is contained in:
eventlOwOp
2025-04-05 17:57:55 +08:00
parent 4ee668dc13
commit d783b6c413
4 changed files with 36 additions and 14 deletions
+5
View File
@@ -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
+5
View File
@@ -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 &
}
-5
View File
@@ -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
# ----------------------------------------------