summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2015-10-11 01:24:31 -0300
committerCaio Schnepper <caioschnepper@gmail.com>2015-10-11 01:42:51 -0300
commitac45a901992069e2dfba605557aae2261b7227fc (patch)
treeda67d7297ab7c2d48305a5e4be6aa4cfceb42ca6
parentda596530e975a6f038911433df08c02a8288d641 (diff)
downloaddevice_samsung_galaxys2-common-ac45a901992069e2dfba605557aae2261b7227fc.zip
device_samsung_galaxys2-common-ac45a901992069e2dfba605557aae2261b7227fc.tar.gz
device_samsung_galaxys2-common-ac45a901992069e2dfba605557aae2261b7227fc.tar.bz2
galaxys2-common: Enable zRAM [1/2]
-zRAM size is set to 256mb, common and recommended value by OEMs -Needs http://review.cyanogenmod.org/#/c/111997 Change-Id: I37a83d89774dc606269e8e211110fedd967041dc
-rwxr-xr-xrootdir/fstab.smdk42103
-rw-r--r--rootdir/init.smdk4210.rc1
2 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/fstab.smdk4210 b/rootdir/fstab.smdk4210
index cf03e47..8be4044 100755
--- a/rootdir/fstab.smdk4210
+++ b/rootdir/fstab.smdk4210
@@ -18,3 +18,6 @@
# recovery
/dev/block/mmcblk0p5 /boot emmc defaults recoveryonly
/dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly
+
+# zRAM
+/dev/block/zram0 none swap defaults zramsize=268435456
diff --git a/rootdir/init.smdk4210.rc b/rootdir/init.smdk4210.rc
index 4afec6f..3f00650 100644
--- a/rootdir/init.smdk4210.rc
+++ b/rootdir/init.smdk4210.rc
@@ -31,6 +31,7 @@ on init
on fs
mount_all /fstab.smdk4210
+ swapon_all /fstab.smdk4210
mkdir /efs/bluetooth
mkdir /efs/wifi