this is useful for all user which want to use cMTD or static partition size (like alpharev) to assign more space to /data reducing /cache size Change-Id: Ib251c9bea1dea50b6c444df977aa605e58008c41gugelfrei
parent
d651911c89
commit
de7b80fdf1
@ -0,0 +1,13 @@
|
||||
#!/system/bin/sh
|
||||
#
|
||||
# bind mount /data/local/download to /cache/download if cache
|
||||
# partition is too small
|
||||
#
|
||||
|
||||
CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
|
||||
if [ $CACHESIZE -lt 20000 ]
|
||||
then
|
||||
mount -o bind /data/local/download /cache/download
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in new issue