2010-08-17 17:39:15 +00:00
|
|
|
#!/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`
|
2010-08-20 18:13:13 +00:00
|
|
|
setprop persist.service.compcache $PROP
|
2010-08-20 17:42:40 +00:00
|
|
|
fi
|
2010-08-17 17:39:15 +00:00
|
|
|
|
|
|
|
if [ $PROP == 1 ]
|
|
|
|
then
|
|
|
|
`dirname $0`/compcache start
|
|
|
|
else
|
|
|
|
`dirname $0`/compcache stop
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|