aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjt1134 <jt1134@gmail.com>2012-08-04 03:26:04 -0500
committerjt1134 <jt1134@gmail.com>2012-08-04 03:26:04 -0500
commit28b49fa369267f54527b69f8fb635d6fa34ce766 (patch)
treefab6cb936620c9ea3dddf7234e85fbe7e41ad14f /usr
parent8e96988164fc1e5cbbf59fae2994f403d3396129 (diff)
downloadkernel_samsung_aries-28b49fa369267f54527b69f8fb635d6fa34ce766.zip
kernel_samsung_aries-28b49fa369267f54527b69f8fb635d6fa34ce766.tar.gz
kernel_samsung_aries-28b49fa369267f54527b69f8fb635d6fa34ce766.tar.bz2
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
Diffstat (limited to 'usr')
-rwxr-xr-xusr/fascinatemtd_initramfs_files/init4
1 files changed, 4 insertions, 0 deletions
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