diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 99672e565..71e5e7db5 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -181,6 +181,10 @@ find_boot_image() { else BOOTIMAGE=`find_block boot_a kern-a android_boot kernel boot lnx bootimg` fi + if [ -z $BOOTIMAGE ]; then + # Lets see what fstabs tells me + BOOTIMAGE=`grep -v '#' /etc/*fstab* | grep -E '/boot[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1` + fi } flash_boot_image() {