From 28b49fa369267f54527b69f8fb635d6fa34ce766 Mon Sep 17 00:00:00 2001 From: jt1134 Date: Sat, 4 Aug 2012 03:26:04 -0500 Subject: fascinatemtd: start recovery if /data/.startrecovery exists this allows a decoy kernel on the recovery partition to clear the bootmode and set .startrecovery flag on data, fixing 3 button recovery for fascinatemtd; param module no longer does the trick Change-Id: I6e21b6147e9a4b740e6a5009b9363dd2b4cca78d --- usr/fascinatemtd_initramfs_files/init | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr') diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init index b7f40e4..d2b99c8 100755 --- a/usr/fascinatemtd_initramfs_files/init +++ b/usr/fascinatemtd_initramfs_files/init @@ -11,13 +11,16 @@ busybox mount -t sysfs sysfs /sys busybox mount -t yaffs2 /dev/block/mtdblock2 /system busybox mount -t yaffs2 /dev/block/mtdblock3 /cache +busybox mount -t ext4 /dev/block/mmcblk0p1 /data image=/stage1/ramdisk.img if busybox test -e /cache/.startrecovery || \ + busybox test -e /data/.startrecovery || \ busybox grep -q bootmode=2 /proc/cmdline ; then # recovery boot busybox rm -fr /cache/.startrecovery + busybox rm -fr /data/.startrecovery image=/stage1/ramdisk-recovery.img # disable lpm @@ -44,6 +47,7 @@ elif ! busybox test -e /system/build.prop ; then fi busybox umount /cache +busybox umount /data busybox umount /system busybox umount /sdcard busybox rmdir /sdcard -- cgit v1.1