Commit 1f846262 authored by topjohnwu's avatar topjohnwu

Handle /cache/su.img

parent b4cfe6e9
...@@ -397,7 +397,11 @@ if ($SUPERSU); then ...@@ -397,7 +397,11 @@ if ($SUPERSU); then
ui_print "- SuperSU patched boot detected!" ui_print "- SuperSU patched boot detected!"
ui_print "- Adding auto patch script for SuperSU" ui_print "- Adding auto patch script for SuperSU"
cp -af $INSTALLER/common/custom_ramdisk_patch.sh /data/custom_ramdisk_patch.sh cp -af $INSTALLER/common/custom_ramdisk_patch.sh /data/custom_ramdisk_patch.sh
if (is_mounted /data); then
SUIMG=/data/su.img SUIMG=/data/su.img
else
SUIMG=/cache/su.img
fi
mount_image $SUIMG /su mount_image $SUIMG /su
if (! is_mounted /su); then if (! is_mounted /su); then
ui_print "! SU image mount failed..." ui_print "! SU image mount failed..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment