#!/system/bin/sh

#Warp OEM Swap Service Startup script
#2013 by Mercury0x000d

#Create 512MB swapfile at /data/swap if it doesn't already exist
if [ ! -f /data/swap ]; then
  busybox dd if=/dev/zero of=/data/swap bs=1k count=524288 
  busybox mkswap /data/swap   
fi

#turn swap service on
swapon /data/swap

#set low memory app termination values to consider the new extra memory
echo "500,1000,20000,20000,20000,25000" > /sys/module/lowmemorykiller/parameters/minfree
