AK3: only attempt to dump .magisk config if patch found
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -212,7 +212,7 @@ repack_ramdisk() {
|
|||||||
cd $home;
|
cd $home;
|
||||||
$bin/magiskboot cpio ramdisk-new.cpio test;
|
$bin/magiskboot cpio ramdisk-new.cpio test;
|
||||||
magisk_patched=$?;
|
magisk_patched=$?;
|
||||||
$bin/magiskboot cpio ramdisk-new.cpio "extract .backup/.magisk $split_img/.magisk";
|
test $((magisk_patched & 3)) -eq 1 && $bin/magiskboot cpio ramdisk-new.cpio "extract .backup/.magisk $split_img/.magisk";
|
||||||
if [ "$comp" ]; then
|
if [ "$comp" ]; then
|
||||||
$bin/magiskboot compress=$comp ramdisk-new.cpio;
|
$bin/magiskboot compress=$comp ramdisk-new.cpio;
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
@@ -308,7 +308,7 @@ flash_boot() {
|
|||||||
if [ ! "$magisk_patched" ]; then
|
if [ ! "$magisk_patched" ]; then
|
||||||
$bin/magiskboot cpio ramdisk.cpio test;
|
$bin/magiskboot cpio ramdisk.cpio test;
|
||||||
magisk_patched=$?;
|
magisk_patched=$?;
|
||||||
$bin/magiskboot cpio ramdisk.cpio "extract .backup/.magisk .magisk";
|
test $((magisk_patched & 3)) -eq 1 && $bin/magiskboot cpio ramdisk.cpio "extract .backup/.magisk .magisk";
|
||||||
fi;
|
fi;
|
||||||
if [ "$kernel" ]; then
|
if [ "$kernel" ]; then
|
||||||
cp -f $kernel kernel;
|
cp -f $kernel kernel;
|
||||||
|
|||||||
Reference in new issue
Block a user