diff options
Diffstat (limited to 'META-INF/com/google/android/update-binary')
-rwxr-xr-x | META-INF/com/google/android/update-binary | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 01a62af..21435dd 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -16,7 +16,8 @@ test "$ANDROID_ROOT" || ANDROID_ROOT=/system; ui_print() { until [ ! "$1" ]; do - echo -e "ui_print $1\nui_print" > $OUTFD; + echo "ui_print $1 + ui_print" > $OUTFD; shift; done; } @@ -113,7 +114,11 @@ mount_all() { ;; esac; if is_mounted /system_root; then - $BB mount -o bind /system_root/system /system; + if [ -f /system_root/build.prop ]; then + $BB mount -o bind /system_root /system; + else + $BB mount -o bind /system_root/system /system; + fi; fi; $BOOTMODE || mount_apex; } |