Remove NVBASE

We only move /cache/data_adb/magisk and /data/magisk to /data/adb/magisk (#7638), so NVBASE is redundant and we can just use MAGISKBIN.
This commit is contained in:
vvb2060
2024-07-17 02:16:15 +08:00
committed by John Wu
parent 2282365cf8
commit d33b077a13
3 changed files with 17 additions and 26 deletions

View File

@ -43,7 +43,7 @@ fix_env() {
# Cleanup and make dirs
rm -rf $MAGISKBIN/*
mkdir -p $MAGISKBIN 2>/dev/null
chmod 700 $NVBASE
chmod 700 /data/adb
cp_readlink $1 $MAGISKBIN
rm -rf $1
chown -R 0:0 $MAGISKBIN
@ -97,7 +97,7 @@ restore_imgs() {
}
post_ota() {
cd $NVBASE
cd /data/adb
cp -f $1 bootctl
rm -f $1
chmod 755 bootctl
@ -116,8 +116,8 @@ EOF
add_hosts_module() {
# Do not touch existing hosts module
[ -d $NVBASE/modules/hosts ] && return
cd $NVBASE/modules
[ -d /data/adb/modules/hosts ] && return
cd /data/adb/modules
mkdir -p hosts/system/etc
cat << EOF > hosts/module.prop
id=hosts