diff options
author | Eddie Ringle <eddie.ringle@gmail.com> | 2010-08-17 13:39:15 -0400 |
---|---|---|
committer | Eddie Ringle <eddie.ringle@gmail.com> | 2010-08-18 00:07:20 -0400 |
commit | 7e52cbfa0a0e38d06b8a3e452240d7c3e9c2fbde (patch) | |
tree | a0e50cb99a7cbf102a835051327dc2db39fce1cb /prebuilt/common | |
parent | fcab753014a1a0da25442c860e11d6d07d32ebf6 (diff) | |
download | vendor_replicant-7e52cbfa0a0e38d06b8a3e452240d7c3e9c2fbde.zip vendor_replicant-7e52cbfa0a0e38d06b8a3e452240d7c3e9c2fbde.tar.gz vendor_replicant-7e52cbfa0a0e38d06b8a3e452240d7c3e9c2fbde.tar.bz2 |
Only enable/disable compcache at boot
Signed-off-by: Eddie Ringle <eddie.ringle@gmail.com>
Diffstat (limited to 'prebuilt/common')
-rwxr-xr-x | prebuilt/common/bin/handle_compcache | 17 | ||||
-rw-r--r-- | prebuilt/common/etc/init.local.rc | 20 |
2 files changed, 20 insertions, 17 deletions
diff --git a/prebuilt/common/bin/handle_compcache b/prebuilt/common/bin/handle_compcache new file mode 100755 index 0000000..52b84d9 --- /dev/null +++ b/prebuilt/common/bin/handle_compcache @@ -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 + diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index ea900c4..f113f1d 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -1,19 +1,5 @@ # CyanogenMod Extras -# 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 - - - +on boot + # Compcache + exec /system/bin/handle_compcache |