summaryrefslogtreecommitdiffstats
path: root/prebuilt/common/etc/init.d/06mountdl
diff options
context:
space:
mode:
Diffstat (limited to 'prebuilt/common/etc/init.d/06mountdl')
-rwxr-xr-xprebuilt/common/etc/init.d/06mountdl13
1 files changed, 13 insertions, 0 deletions
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