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
2742edd7
Commit
2742edd7
authored
Apr 02, 2020
by
Chris Renshaw
Committed by
John Wu
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: only show addon.d error once on failures
parent
834561a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
addon.d.sh
scripts/addon.d.sh
+2
-2
No files found.
scripts/addon.d.sh
View file @
2742edd7
...
@@ -12,7 +12,7 @@ trampoline() {
...
@@ -12,7 +12,7 @@ trampoline() {
if
[
-f
$MAGISKBIN
/addon.d.sh
]
;
then
if
[
-f
$MAGISKBIN
/addon.d.sh
]
;
then
exec
sh
$MAGISKBIN
/addon.d.sh
"
$@
"
exec
sh
$MAGISKBIN
/addon.d.sh
"
$@
"
exit
$?
exit
$?
el
se
el
if
[
"
$1
"
=
post-restore
]
;
then
ps |
grep
zygote |
grep
-v
grep
>
/dev/null
&&
BOOTMODE
=
true
||
BOOTMODE
=
false
ps |
grep
zygote |
grep
-v
grep
>
/dev/null
&&
BOOTMODE
=
true
||
BOOTMODE
=
false
$BOOTMODE
||
ps
-A
2>/dev/null |
grep
zygote |
grep
-v
grep
>
/dev/null
&&
BOOTMODE
=
true
$BOOTMODE
||
ps
-A
2>/dev/null |
grep
zygote |
grep
-v
grep
>
/dev/null
&&
BOOTMODE
=
true
...
@@ -31,8 +31,8 @@ trampoline() {
...
@@ -31,8 +31,8 @@ trampoline() {
ui_print
"***********************"
ui_print
"***********************"
ui_print
"! Cannot find Magisk binaries - was data wiped or not decrypted?"
ui_print
"! Cannot find Magisk binaries - was data wiped or not decrypted?"
ui_print
"! Reflash OTA from decrypted recovery or reflash Magisk"
ui_print
"! Reflash OTA from decrypted recovery or reflash Magisk"
exit
1
fi
fi
exit
1
}
}
# Always use the script in /data
# Always use the script in /data
...
...
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