From eb896cbe309bdc44125b72cb4e5e75c64eeccec3 Mon Sep 17 00:00:00 2001 From: milaq Date: Wed, 16 May 2012 14:04:24 +0200 Subject: [PATCH] mount system and data with no access stamps remove cache hacks (cache partition is largely unused with dexopt.dataonly) --- leo.mk | 1 - prebuilt/init.d/02cache | 11 ----------- prebuilt/init.htcleo.rc | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100755 prebuilt/init.d/02cache diff --git a/leo.mk b/leo.mk index 6d21593..dfb50bf 100644 --- a/leo.mk +++ b/leo.mk @@ -102,7 +102,6 @@ PRODUCT_COPY_FILES += \ # 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/init.d/01modules:system/etc/init.d/01modules \ - device/htc/leo/prebuilt/init.d/02cache:system/etc/init.d/02cache \ device/htc/leo/prebuilt/init.d/10mic_level:system/etc/init.d/10mic_level \ device/htc/leo/prebuilt/init.d/97ppp:system/etc/init.d/97ppp diff --git a/prebuilt/init.d/02cache b/prebuilt/init.d/02cache deleted file mode 100755 index f8bbba2..0000000 --- a/prebuilt/init.d/02cache +++ /dev/null @@ -1,11 +0,0 @@ -#!/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 \ No newline at end of file diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc index 9190a27..dc0e8ee 100644 --- a/prebuilt/init.htcleo.rc +++ b/prebuilt/init.htcleo.rc @@ -9,10 +9,10 @@ on early-init symlink /mnt/sdcard /sdcard on fs - mount yaffs2 mtd@system /system remount + mount yaffs2 mtd@system /system remount noatime nodiratime + mount yaffs2 mtd@userdata /data remount nosuid nodev noatime nodiratime on post-fs-data - mount rootfs rootfs / remount mkdir /data/misc/wifi 0770 wifi wifi