Only enable/disable compcache at boot

Signed-off-by: Eddie Ringle <eddie.ringle@gmail.com>
This commit is contained in:
Eddie Ringle 2010-08-17 13:39:15 -04:00
parent fcab753014
commit 7e52cbfa0a
3 changed files with 21 additions and 17 deletions

View File

@ -0,0 +1,17 @@
#!/system/bin/sh
#
# Compcache handler
# Decides whether or not Compcache is enabled
#
PROP=$(cat /data/property/persist.service.compcache)
if [ $PROP == 1 ]
then
`dirname $0`/compcache start
else
`dirname $0`/compcache stop
fi
exit 0

View File

@ -1,19 +1,5 @@
# CyanogenMod Extras # CyanogenMod Extras
# Compcache on boot
service compcache_on /system/bin/logwrapper /system/bin/sh /system/bin/compcache start # Compcache
disabled exec /system/bin/handle_compcache
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

View File

@ -75,6 +75,7 @@ PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \ vendor/cyanogen/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \
vendor/cyanogen/prebuilt/common/etc/init.d/04modules:system/etc/init.d/04modules \ vendor/cyanogen/prebuilt/common/etc/init.d/04modules:system/etc/init.d/04modules \
vendor/cyanogen/prebuilt/common/etc/init.d/20userinit:system/etc/init.d/20userinit \ vendor/cyanogen/prebuilt/common/etc/init.d/20userinit:system/etc/init.d/20userinit \
vendor/cyanogen/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache \
vendor/cyanogen/prebuilt/common/bin/compcache:system/bin/compcache \ vendor/cyanogen/prebuilt/common/bin/compcache:system/bin/compcache \
vendor/cyanogen/prebuilt/common/bin/fix_permissions:system/bin/fix_permissions \ vendor/cyanogen/prebuilt/common/bin/fix_permissions:system/bin/fix_permissions \
vendor/cyanogen/prebuilt/common/bin/sysinit:system/bin/sysinit \ vendor/cyanogen/prebuilt/common/bin/sysinit:system/bin/sysinit \