android_device_htc_click/custom/compcache
KalimochoAz eeb2444cbd More additions and setup-makefiles
Removed also white spaces
Added Firmaware to proprietary and added directory create
Modified error at libOmxVidEnc.so that was libOmxVidEnc
modified error in manufacturer
Full revision. Now works properly

Change-Id: Ibdabb72f6f87ffc7430407e39faecb79a109ef78
2011-02-07 17:00:58 +01:00

34 lines
569 B
Bash
Executable File

#!/system/bin/sh
#
# Compcache manager
# shade@chemlab.org (cyanogen)
#
DEV=/dev/block/ramzswap0
MODULE=ramzswap
MODULES_DIR=/system/lib/modules/`uname -r`
case "$1" in
start)
echo 3 > /proc/sys/vm/drop_caches
echo 30 > /proc/sys/vm/swappiness
modprobe $MODULE
rzscontrol $DEV --disksize_kb=$2 --init
swapon $DEV
;;
stop)
swapoff $DEV >/dev/null 2>&1
rmmod $MODULE >/dev/null 2>&1
;;
stats)
rzscontrol $DEV --stats
;;
*)
echo "Usage: $0 {start <size>|stop|stats}"
exit 1
esac
exit 0