Merge "leo: add postrecoveryboot to change recovery.fstab" into gingerbread

This commit is contained in:
Steve Kondik 2011-05-20 09:39:47 +04:00 committed by Gerrit Code Review
commit 8044589cc2
2 changed files with 14 additions and 0 deletions

View File

@ -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

7
postrecoveryboot.sh Normal file
View File

@ -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