Backend+AK2: misc fixes
- fix fallback broken unzip detection now that we create a subdirectory prior - probably best to execute the bump/loki/whatever script using our included ash shell instead of the recovery sh.
This commit is contained in:
1 parent
a3cacd662e
commit
408d06aff0
2 files changed
+2
-2
No files matched your search
@@ -30,7 +30,7 @@ ui_print " ";
|
|||||||
mkdir -p /tmp/anykernel/bin;
|
mkdir -p /tmp/anykernel/bin;
|
||||||
cd /tmp/anykernel;
|
cd /tmp/anykernel;
|
||||||
unzip -o "$ZIP";
|
unzip -o "$ZIP";
|
||||||
if [ $? != 0 -o -z "$(ls /tmp/anykernel)" ]; then
|
if [ $? != 0 -o -z "$(ls /tmp/anykernel/tools)" ]; then
|
||||||
abort "Unzip failed. Aborting...";
|
abort "Unzip failed. Aborting...";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ write_boot() {
|
|||||||
ui_print " "; ui_print "New image larger than boot partition. Aborting..."; exit 1;
|
ui_print " "; ui_print "New image larger than boot partition. Aborting..."; exit 1;
|
||||||
fi;
|
fi;
|
||||||
if [ -f "/data/custom_boot_image_patch.sh" ]; then
|
if [ -f "/data/custom_boot_image_patch.sh" ]; then
|
||||||
sh /data/custom_boot_image_patch.sh /tmp/anykernel/boot-new.img;
|
ash /data/custom_boot_image_patch.sh /tmp/anykernel/boot-new.img;
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
ui_print " "; ui_print "User script execution failed. Aborting..."; exit 1;
|
ui_print " "; ui_print "User script execution failed. Aborting..."; exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
Reference in new issue
Block a user