Skip to content

Commit

Permalink
Update init
Browse files Browse the repository at this point in the history
  • Loading branch information
HuskyDG committed Aug 15, 2023
1 parent 03355ce commit 904a145
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -434,19 +434,6 @@ mkdir \$MAGISKTMP/.magisk/block
cat MAGISK_FILES_BASE/config >\$MAGISKTMP/.magisk/config
restorecon -R /data/adb/magisk

OSROOT="\$(cat MAGISK_FILES_BASE/osroot_dev)"
if [ ! -z "\$OSROOT" ]; then
BLOCKNAME="\${OSROOT##*/}"
ln -s "./\$BLOCKNAME" "\$MAGISKTMP/.magisk/mirror/osroot"
fi

SRC="\$(cmdline SRC)"
BIPATH="\$(cmdline BOOT_IMAGE)"
test -z "\$SRC" && SRC="\${BIPATH%/*}"
if [ ! -z "\$SRC" ]; then
ln -s "./osroot/\$SRC" "\$MAGISKTMP/.magisk/mirror/android"
fi

# if magisk does not exist
[ ! -f "\$MAGISKTMP/magisk" ] && exit_magisk

Expand Down

0 comments on commit 904a145

Please sign in to comment.