Minor changes

This commit is contained in:
Nullptr
2024-01-05 17:11:50 +08:00
parent 381abc99d5
commit fbb792ef13
2 changed files with 4 additions and 10 deletions

View File

@@ -26,11 +26,8 @@ create_sys_perm() {
chcon u:object_r:system_file:s0 $1
}
if [ "$(which magisk)" ]; then
export TMP_PATH="$(magisk --path)/zygisksu"
else
export TMP_PATH="$(ksud path)/zygisksu"
fi
TMP_PATH=/sbin
[ -f /sbin ] || TMP_PATH=/debug_ramdisk
create_sys_perm $TMP_PATH

View File

@@ -1,9 +1,6 @@
MODDIR=${0%/*}/..
if [ "$(which magisk)" ]; then
export TMP_PATH="$(magisk --path)/zygisksu"
else
export TMP_PATH="$(ksud path)/zygisksu"
fi
TMP_PATH=/sbin
[ -f /sbin ] || TMP_PATH=/debug_ramdisk
exec $MODDIR/bin/zygisk-ptrace64 ctl $*