diff options
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 |