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:
osm0sis committed 2016-01-24 13:32:13 -04:00
1 parent a3cacd662e
commit 408d06aff0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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;