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
This commit is contained in:
parent
9c2791c193
commit
a711c66fde
@ -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
7
postrecoveryboot.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user