summaryrefslogtreecommitdiffstats
path: root/prebuilt
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2010-08-20 13:42:40 -0400
committerSteve Kondik <shade@chemlab.org>2010-08-20 13:42:40 -0400
commit4630e944fda644957d8c5ddb79d9b19ae493d928 (patch)
treecd13165c3fe7258ad127f46947e777c961b24166 /prebuilt
parentfe18fc31a6046fdb90dc97ca0ed4075bf198f32e (diff)
downloadvendor_replicant-4630e944fda644957d8c5ddb79d9b19ae493d928.zip
vendor_replicant-4630e944fda644957d8c5ddb79d9b19ae493d928.tar.gz
vendor_replicant-4630e944fda644957d8c5ddb79d9b19ae493d928.tar.bz2
cm: Look at ro.compcache.default too
Diffstat (limited to 'prebuilt')
-rwxr-xr-xprebuilt/common/bin/handle_compcache7
1 files changed, 6 insertions, 1 deletions
diff --git a/prebuilt/common/bin/handle_compcache b/prebuilt/common/bin/handle_compcache
index 52b84d9..527e6ec 100755
--- a/prebuilt/common/bin/handle_compcache
+++ b/prebuilt/common/bin/handle_compcache
@@ -4,7 +4,12 @@
# Decides whether or not Compcache is enabled
#
-PROP=$(cat /data/property/persist.service.compcache)
+if [ -e /data/property/persist.service.compcache ];
+then
+ PROP=`getprop persist.service.compcache`
+else
+ PROP=`getprop ro.compcache.default`
+fi
if [ $PROP == 1 ]
then