diff options
author | Kali- <kalimero@ngi.it> | 2010-10-15 23:01:17 +0200 |
---|---|---|
committer | Kali- <kalimero@ngi.it> | 2010-10-15 23:01:17 +0200 |
commit | ac33c878cfe15be931db125c6fd2c8fc0c9f5f09 (patch) | |
tree | aa0fb914086dec916a483599cbb0c72c0869fbe5 /prebuilt/common/bin | |
parent | 9a2e610c1b0fb109fb5354d1783df41a5e1e6b59 (diff) | |
download | vendor_replicant-ac33c878cfe15be931db125c6fd2c8fc0c9f5f09.zip vendor_replicant-ac33c878cfe15be931db125c6fd2c8fc0c9f5f09.tar.gz vendor_replicant-ac33c878cfe15be931db125c6fd2c8fc0c9f5f09.tar.bz2 |
script for check cache partition size
Diffstat (limited to 'prebuilt/common/bin')
-rw-r--r-- | prebuilt/common/bin/verify_cache_partition_size.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/prebuilt/common/bin/verify_cache_partition_size.sh b/prebuilt/common/bin/verify_cache_partition_size.sh new file mode 100644 index 0000000..748f6b2 --- /dev/null +++ b/prebuilt/common/bin/verify_cache_partition_size.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Force /system dalvik-cache on /data instead of /cache if is not large enough +# + +CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2) +if [ $CACHESIZE \< 60000 ] +then + echo "dalvik.vm.dexopt-data-only=1" >> /system/build.prop > /dev/null 2>&1 +fi |