replicant-vendor_replicant/prebuilt/common/bin/handle_compcache

23 lines
336 B
Plaintext
Raw Normal View History

#!/system/bin/sh
#
# Compcache handler
# Decides whether or not Compcache is enabled
#
2010-08-20 17:42:40 +00:00
if [ -e /data/property/persist.service.compcache ];
then
PROP=`getprop persist.service.compcache`
else
PROP=`getprop ro.compcache.default`
fi
if [ $PROP == 1 ]
then
`dirname $0`/compcache start
else
`dirname $0`/compcache stop
fi
exit 0