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