Only enable/disable compcache at boot
Signed-off-by: Eddie Ringle <eddie.ringle@gmail.com>
This commit is contained in:
parent
fcab753014
commit
7e52cbfa0a
17
prebuilt/common/bin/handle_compcache
Executable file
17
prebuilt/common/bin/handle_compcache
Executable 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
|
||||||
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user