diff --git a/releasetools/bootloader.sh b/releasetools/bootloader.sh index b91717c..105c116 100755 --- a/releasetools/bootloader.sh +++ b/releasetools/bootloader.sh @@ -3,13 +3,15 @@ # Copyright (C) 2012 the cmhtcleo team # -echo "updater-script: making compatible update script" +echo "updater-script: Making Compatible Update script" cd $REPACK/ota/META-INF/com/google/android -cat updater-script >> temp +awk '{if (match($0,"boot.img")) exit; print > "head"}' updater-script +awk '/boot.img/ {p=1}; p==1 {print > "tail"}' updater-script rm -rf updater-script -grep -vw "unmount" temp > updater-script -rm -rf temp + +cat head > updater-script +rm -rf head echo 'package_extract_file("checksys.sh","/tmp/checksys.sh");' >> updater-script echo 'set_perm(0, 0, 755, "/tmp/checksys.sh");' >> updater-script @@ -20,7 +22,9 @@ echo 'else' >> updater-script echo ' ui_print("MAGLDR detected, using rmnet for data connections");' >> updater-script echo ' delete("/system/ppp");' >> updater-script echo 'endif;' >> updater-script -echo 'unmount("/system");' >> updater-script + +cat tail >> updater-script +rm -rf tail echo "updater-script: copying checksys.sh" -cp $ANDROID_BUILD_TOP/device/htc/leo/releasetools/checksys.sh $REPACK/ota +cp $ANDROID_BUILD_TOP/device/htc/leo/releasetools/checksys.sh $REPACK/ota \ No newline at end of file