aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-12-22 21:14:55 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-12-22 21:14:55 +0700
commiteedcf0c3ff0ab70b3a3a2ae7d73dcf334ea3c34e (patch)
treecfcf6228192c810721840d7a21d7cda35220712b /usr
parente21c3956b8f04de0f98ccea63b4f717ecbd87d82 (diff)
downloadkernel_samsung_aries-eedcf0c3ff0ab70b3a3a2ae7d73dcf334ea3c34e.zip
kernel_samsung_aries-eedcf0c3ff0ab70b3a3a2ae7d73dcf334ea3c34e.tar.gz
kernel_samsung_aries-eedcf0c3ff0ab70b3a3a2ae7d73dcf334ea3c34e.tar.bz2
stage1: generalize mmc waiting
Use major-minor number to check if mmc is initialized. This improves compatibility for Captivate users who use microSD in lieu of their bricked internal mmc. Change-Id: Ib55f2870fa40de583a7b06e7afba0ce0578ee113
Diffstat (limited to 'usr')
-rwxr-xr-xusr/fascinatemtd_initramfs_files/init2
-rwxr-xr-xusr/galaxysmtd_initramfs_files/init2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init
index c987b80..c7a309d 100755
--- a/usr/fascinatemtd_initramfs_files/init
+++ b/usr/fascinatemtd_initramfs_files/init
@@ -9,7 +9,7 @@ busybox rm init
busybox mount -t proc proc /proc
busybox mount -t sysfs sysfs /sys
-while ! busybox test -d /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001 ; do
+while ! busybox test -d /sys/dev/block/179:0 ; do
echo "Waiting for internal mmc..."
busybox sleep 1
done
diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init
index 25299df..1ea02e7 100755
--- a/usr/galaxysmtd_initramfs_files/init
+++ b/usr/galaxysmtd_initramfs_files/init
@@ -9,7 +9,7 @@ busybox rm init
busybox mount -t proc proc /proc
busybox mount -t sysfs sysfs /sys
-while ! busybox test -d /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001 ; do
+while ! busybox test -d /sys/dev/block/179:0 ; do
echo "Waiting for internal mmc..."
busybox sleep 1
done