android_device_htc_leo/prebuilt/init.d/02cachesd

12 lines
286 B
Plaintext
Raw Normal View History

2011-12-16 01:40:29 +00:00
#!/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