diff options
author | Steve Kondik <shade@chemlab.org> | 2011-01-30 19:11:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2011-01-30 19:11:06 +0000 |
commit | 05ca4306b1ecd557ac63b8f37e3242a8be7d05a4 (patch) | |
tree | 1b2aed8312835377725c803bfc5dd880381e07d6 /prebuilt | |
parent | e49abc286e6968ca9a40b5c929a435d8cf1750ee (diff) | |
parent | de7b80fdf17f5eac2a0847371a55d122cad7f1fc (diff) | |
download | vendor_replicant-05ca4306b1ecd557ac63b8f37e3242a8be7d05a4.zip vendor_replicant-05ca4306b1ecd557ac63b8f37e3242a8be7d05a4.tar.gz vendor_replicant-05ca4306b1ecd557ac63b8f37e3242a8be7d05a4.tar.bz2 |
Merge "cm: bind mount DOWNLOAD_CACHE to /data if /cache is less then 20MB" into gingerbread
Diffstat (limited to 'prebuilt')
-rwxr-xr-x[-rw-r--r--] | prebuilt/common/etc/init.d/05mountsd | 0 | ||||
-rwxr-xr-x | prebuilt/common/etc/init.d/06mountdl | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/prebuilt/common/etc/init.d/05mountsd b/prebuilt/common/etc/init.d/05mountsd index b34b171..b34b171 100644..100755 --- a/prebuilt/common/etc/init.d/05mountsd +++ b/prebuilt/common/etc/init.d/05mountsd diff --git a/prebuilt/common/etc/init.d/06mountdl b/prebuilt/common/etc/init.d/06mountdl new file mode 100755 index 0000000..bed7019 --- /dev/null +++ b/prebuilt/common/etc/init.d/06mountdl @@ -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 |