replicant-vendor_replicant/prebuilt/common/etc/init.d/06mountdl
Steve Kondik 4ff97d51cb Quiet down this init script
Change-Id: I007e4e2bb5c0dbad233ed2655cf941d51064d901
2011-06-18 12:42:06 -04:00

16 lines
326 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
rm /cache/download/downloadfile*.apk >/dev/null 2>&1
exit 0