From a711c66fdecf298347d410759eed7a5ad1e589a4 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 9 May 2011 21:44:33 +0100 Subject: [PATCH] leo: add postrecoveryboot to change recovery.fstab Added the postrecoveryboot.sh script to change the recovery.fstab so that it is comapitable for both cLK and magldr Change-Id: I04eb1e5230e7fbc2f2e0b117d9086ec700b17c19 --- AndroidBoard.mk | 7 +++++++ postrecoveryboot.sh | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 postrecoveryboot.sh diff --git a/AndroidBoard.mk b/AndroidBoard.mk index fb7cce5..5c100aa 100755 --- a/AndroidBoard.mk +++ b/AndroidBoard.mk @@ -25,5 +25,12 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET) + +file := $(TARGET_RECOVERY_ROOT_OUT)/sbin/postrecoveryboot.sh +ALL_PREBUILT += $(file) +$(file) : $(LOCAL_PATH)/postrecoveryboot.sh | $(ACP) + $(transform-prebuilt-to-target) + # include the non-open-source counterpart to this file -include vendor/htc/leo/AndroidBoardVendor.mk diff --git a/postrecoveryboot.sh b/postrecoveryboot.sh new file mode 100644 index 0000000..0137371 --- /dev/null +++ b/postrecoveryboot.sh @@ -0,0 +1,7 @@ +#!/sbin/sh + +sleep 2 + +if [[ ! `grep clk= /proc/cmdline` ]]; then +sed -i 's/\/boot\t\tmtd/\/boot\t\tyaffs2/g' /etc/recovery.fstab +fi