mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
Update outputs
This commit is contained in:
parent
4ca25f74c6
commit
fb40e96917
@ -171,6 +171,7 @@ mount_part() {
|
|||||||
[ -L $POINT ] && rm -f $POINT
|
[ -L $POINT ] && rm -f $POINT
|
||||||
mkdir $POINT 2>/dev/null
|
mkdir $POINT 2>/dev/null
|
||||||
is_mounted $POINT && return
|
is_mounted $POINT && return
|
||||||
|
ui_print "- Mounting $PART"
|
||||||
mount -o ro $POINT 2>/dev/null
|
mount -o ro $POINT 2>/dev/null
|
||||||
if ! is_mounted $POINT; then
|
if ! is_mounted $POINT; then
|
||||||
local BLOCK=`find_block $PART$SLOT`
|
local BLOCK=`find_block $PART$SLOT`
|
||||||
@ -188,7 +189,6 @@ mount_partitions() {
|
|||||||
fi
|
fi
|
||||||
[ -z $SLOT ] || ui_print "- Current boot slot: $SLOT"
|
[ -z $SLOT ] || ui_print "- Current boot slot: $SLOT"
|
||||||
|
|
||||||
ui_print "- Mounting /system, /vendor"
|
|
||||||
mount_part system
|
mount_part system
|
||||||
if [ -f /system/init.rc ]; then
|
if [ -f /system/init.rc ]; then
|
||||||
SYSTEM_ROOT=true
|
SYSTEM_ROOT=true
|
||||||
@ -199,8 +199,8 @@ mount_partitions() {
|
|||||||
else
|
else
|
||||||
grep -qE '/dev/root|/system_root' /proc/mounts && SYSTEM_ROOT=true || SYSTEM_ROOT=false
|
grep -qE '/dev/root|/system_root' /proc/mounts && SYSTEM_ROOT=true || SYSTEM_ROOT=false
|
||||||
fi
|
fi
|
||||||
$SYSTEM_ROOT && ui_print "- Device is system-as-root"
|
|
||||||
[ -L /system/vendor ] && mount_part vendor
|
[ -L /system/vendor ] && mount_part vendor
|
||||||
|
$SYSTEM_ROOT && ui_print "- Device is system-as-root"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_flags() {
|
get_flags() {
|
||||||
|
Loading…
Reference in New Issue
Block a user