From 158fe54d9eafec1a0473656dd89b54e0e53f869b Mon Sep 17 00:00:00 2001 From: forkbomb Date: Tue, 24 Nov 2015 22:40:52 +1100 Subject: i9300: enable zram [1/2] Change-Id: I537df0d39ceddfabb5e0a859398d5068f6860faa --- rootdir/fstab.smdk4x12 | 3 +++ rootdir/init.target.rc | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'rootdir') diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12 index 1586726..507d3ed 100644 --- a/rootdir/fstab.smdk4x12 +++ b/rootdir/fstab.smdk4x12 @@ -16,3 +16,6 @@ /dev/block/mmcblk0p5 /boot emmc defaults recoveryonly /dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly /dev/block/mmcblk0p7 /modem emmc defaults recoveryonly + +# zram +/dev/block/zram0 none swap defaults zramsize=268435456 diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index 3e3b096..a5b5b19 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -20,6 +20,10 @@ on post-fs-data # Restorecon restorecon_recursive /efs +on fs + # zram + swapon_all /fstab.smdk4x12 + on boot # cbd -- cgit v1.1