From a89711a5c1ec6a863213821140d219920b949104 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 7 Jul 2010 09:06:13 -0400 Subject: [PATCH] Copy the local (CM-specific) init.rc to /etc --- prebuilt/common/etc/init.local.rc | 22 ++++++++++++++++++++++ products/common.mk | 1 + 2 files changed, 23 insertions(+) create mode 100644 prebuilt/common/etc/init.local.rc diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc new file mode 100644 index 00000000..9d7652d4 --- /dev/null +++ b/prebuilt/common/etc/init.local.rc @@ -0,0 +1,22 @@ +# CyanogenMod Extras + +# Run scripts in /system/etc/init.d + exec /system/xbin/run-parts /system/etc/init.d + +# Compcache +service compcache_on /system/bin/logwrapper /system/bin/sh /system/bin/compcache start + disabled + oneshot + +service compcache_off /system/bin/logwrapper /system/bin/sh /system/bin/compcache stop + disabled + oneshot + +on property:persist.service.compcache=1 + start compcache_on + +on property:persist.service.compcache=0 + start compcache_off + + + diff --git a/products/common.mk b/products/common.mk index 99a0f520..ae2c7cb2 100644 --- a/products/common.mk +++ b/products/common.mk @@ -60,6 +60,7 @@ PRODUCT_COPY_FILES += \ vendor/cyanogen/prebuilt/common/etc/terminfo/l/linux:system/etc/terminfo/l/linux \ vendor/cyanogen/prebuilt/common/etc/terminfo/u/unknown:system/etc/terminfo/u/unknown \ vendor/cyanogen/prebuilt/common/etc/profile:system/etc/profile \ + vendor/cyanogen/prebuilt/common/etc/init.local.rc:system/etc/init.local.rc \ vendor/cyanogen/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ vendor/cyanogen/prebuilt/common/etc/init.d/01sysctl:system/etc/init.d/01sysctl \ vendor/cyanogen/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \