Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bschulz87/dabc06d00170b77822036766f3e73ba1 to your computer and use it in GitHub Desktop.
Save bschulz87/dabc06d00170b77822036766f3e73ba1 to your computer and use it in GitHub Desktop.
From 7f8939186cb26bf950c6326657edc0b973a8709c Mon Sep 17 00:00:00 2001
From: Benjamin Schulz <[email protected]>
Date: Wed, 14 Sep 2022 14:29:28 +0200
Subject: [PATCH] Fix starqltechn
---
META-INF/com/google/android/update-binary | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index e2c2a67..201870d 100644
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -66,7 +66,8 @@ error_mounting() {
}
get_block_for_mount_point() {
- grep -v "^#" /etc/recovery.fstab | grep "[[:blank:]]$1[[:blank:]]" | tail -n1 | tr -s [:blank:] ' ' | cut -d' ' -f1
+ # Source: https://forum.xda-developers.com/t/missing-options-in-recovery.4256195/post-87070367
+ grep -v "^#" /etc/recovery.fstab | grep "$1" | tail -n1 | awk '{print $3}'
}
find_block() {
--
2.37.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment