From bb761dab4be24e59ad928b998a95fdd44830b70d Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Fri, 16 Dec 2011 01:40:29 +0000 Subject: [PATCH] leo: fix market download issue --- leo.mk | 5 +++-- prebuilt/02cachesd | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 prebuilt/02cachesd diff --git a/leo.mk b/leo.mk index 79bf500..e748a50 100755 --- a/leo.mk +++ b/leo.mk @@ -55,9 +55,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/htc/leo/prebuilt/media_profiles.xml:system/etc/media_profiles.xml -# This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script +# This file is used to install the enable RMNET and corresponding modules which dont get activated by normal module script, mount cache so that downloads work correctly PRODUCT_COPY_FILES += \ - device/htc/leo/prebuilt/01modules:system/etc/init.d/01modules + device/htc/leo/prebuilt/01modules:system/etc/init.d/01modules \ + device/htc/leo/prebuilt/02cachesd:system/etc/init.d/02achesd PRODUCT_PACKAGES += \ sensors.htcleo \ diff --git a/prebuilt/02cachesd b/prebuilt/02cachesd new file mode 100644 index 0000000..a5a7a9c --- /dev/null +++ b/prebuilt/02cachesd @@ -0,0 +1,11 @@ +#!/system/bin/sh + +cache_partition=`grep cache /proc/mtd | cut -d: -f1 | sed 's/mtd/mtdblock/'` + +umount /cache +rmdir /cache +mkdir /mnt/cache +mkdir /data/cache +mount -t yaffs2 -o rw /dev/block/$cache_partition /mnt/cache +ln -s /data/cache /cache +ln -s /mnt/cache/recovery /cache/recovery