de7b80fdf1
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: Ib251c9bea1dea50b6c444df977aa605e58008c41
14 lines
272 B
Bash
Executable File
14 lines
272 B
Bash
Executable File
#!/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
|