Skip to content

Commit

Permalink
简单修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang2635 committed Jan 18, 2023
1 parent 93e43db commit bc051dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#MODDIR=${0%/*}
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=${PATH}:${MAGISK_TMP}/.magisk/busybox

until [ "$(getprop sys.boot_completed)" -eq 1 ]; do
sleep 1
done
Expand Down Expand Up @@ -48,8 +48,8 @@ elif [ "$(which busybox)" ]; then
alias crond="$(which busybox) crond"
elif [ -x "${cus_busybox_file}" ]; then
alias crond="${cus_busybox_file} crond"
elif [ "$(which crond)" ]; then
alias crond="$(which crond)"
elif [ "$(command -v crond)" ]; then
alias crond="$(command -v crond)"
fi

set_crond
Expand Down

0 comments on commit bc051dc

Please sign in to comment.