mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-09 10:54:26 +02:00
Slight adjustments to scripts
This commit is contained in:
parent
46c91f923d
commit
518f3d229f
@ -3,7 +3,7 @@
|
|||||||
# Magisk General Utility Functions
|
# Magisk General Utility Functions
|
||||||
# by topjohnwu
|
# by topjohnwu
|
||||||
#
|
#
|
||||||
# Used in flash_script.sh, addon.d.sh, magisk module installers, and uninstaller
|
# Used everywhere in Magisk
|
||||||
#
|
#
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ mount_partitions() {
|
|||||||
mount -t ext4 -o ro $SYSTEMBLOCK /system
|
mount -t ext4 -o ro $SYSTEMBLOCK /system
|
||||||
fi
|
fi
|
||||||
is_mounted /system || [ -f /system/build.prop ] || abort "! Cannot mount /system"
|
is_mounted /system || [ -f /system/build.prop ] || abort "! Cannot mount /system"
|
||||||
cat /proc/mounts | grep /dev/root >/dev/null && SKIP_INITRAMFS=true || SKIP_INITRAMFS=false
|
cat /proc/mounts | grep -E '/dev/root|/system_root' >/dev/null && SKIP_INITRAMFS=true || SKIP_INITRAMFS=false
|
||||||
if [ -f /system/init.rc ]; then
|
if [ -f /system/init.rc ]; then
|
||||||
SKIP_INITRAMFS=true
|
SKIP_INITRAMFS=true
|
||||||
mkdir /system_root 2>/dev/null
|
mkdir /system_root 2>/dev/null
|
||||||
@ -121,6 +121,7 @@ migrate_boot_backup() {
|
|||||||
mv /data/stock_boot.img $STOCKDUMP
|
mv /data/stock_boot.img $STOCKDUMP
|
||||||
./magiskboot --compress $STOCKDUMP
|
./magiskboot --compress $STOCKDUMP
|
||||||
fi
|
fi
|
||||||
|
[ -f /data/magisk/stock_boot* ] && mv /data/magisk/stock_boot* /data
|
||||||
}
|
}
|
||||||
|
|
||||||
sign_chromeos() {
|
sign_chromeos() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user