script for check cache partition size
This commit is contained in:
parent
9a2e610c1b
commit
ac33c878cf
2 changed files with 11 additions and 0 deletions
10
prebuilt/common/bin/verify_cache_partition_size.sh
Normal file
10
prebuilt/common/bin/verify_cache_partition_size.sh
Normal file
|
@ -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
|
|
@ -59,6 +59,7 @@ include frameworks/base/data/sounds/AudioPackage4.mk
|
|||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/cyanogen/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
|
||||
vendor/cyanogen/prebuilt/common/bin/verify_cache_partition_size.sh:system/bin/verify_cache_partition_size.sh \
|
||||
vendor/cyanogen/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf \
|
||||
vendor/cyanogen/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf \
|
||||
vendor/cyanogen/prebuilt/common/etc/terminfo/l/linux:system/etc/terminfo/l/linux \
|
||||
|
|
Loading…
Reference in a new issue