Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
fb40e969
Commit
fb40e969
authored
May 01, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outputs
parent
4ca25f74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util_functions.sh
scripts/util_functions.sh
+2
-2
No files found.
scripts/util_functions.sh
View file @
fb40e969
...
@@ -171,6 +171,7 @@ mount_part() {
...
@@ -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() {
...
@@ -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() {
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment