Skip to content

Commit

Permalink
简单调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang2635 committed Jan 27, 2023
1 parent 639fe3a commit 589760b
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ MODDIR="$(dirname $(readlink -f "$0"))"
. ${MODDIR}/files/status.conf
F_ARCH="${F_ARCH:=arm64}"
DATADIR="${DATADIR:=/sdcard/Android}"
MAGISK_BUSYBOX_PATH='/data/adb/magisk/busybox'
cus_busybox_file="${MODDIR}/files/bin/busybox_${F_ARCH}"
MAGISK_TMP="$(magisk --path 2>/dev/null)"
export PATH=${MODDIR}/files/bin/busybox:$PATH

until [ "$(getprop sys.boot_completed)" -eq 1 ]; do
sleep 1
Expand Down Expand Up @@ -42,16 +40,6 @@ if [ -f ${MODDIR}/files/frpc_run.pid ]; then
fi
[ "$(stat -c %a ${MODDIR}/files/status.conf)" != "644" ] && chmod 0644 ${MODDIR}/files/status.conf

if [ -x "${MAGISK_BUSYBOX_PATH}" ]; then
alias crond="${MAGISK_BUSYBOX_PATH} crond"
elif [ "$(which busybox)" ]; then
alias crond="$(which busybox) crond"
elif [ -x "${cus_busybox_file}" ]; then
alias crond="${cus_busybox_file} crond"
elif [ "$(command -v crond)" ]; then
alias crond="$(command -v crond)"
fi

set_crond
crond -c ${MODDIR}/crond
sh ${MODDIR}/Check_FRPC.sh &>/dev/null
sh ${MODDIR}/check_frpc.sh &>/dev/null

0 comments on commit 589760b

Please sign in to comment.