summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorforkbomb <keepcalm444@gmail.com>2015-11-24 22:40:52 +1100
committerforkbomb <keepcalm444@gmail.com>2015-11-25 08:11:00 +1100
commit158fe54d9eafec1a0473656dd89b54e0e53f869b (patch)
treec3aaf909275dd0492eeac8b2d0cd7d15a4853f68
parentc5448d5f3a73bdd41b340683e014649f3b944912 (diff)
downloaddevice_samsung_i9300-158fe54d9eafec1a0473656dd89b54e0e53f869b.zip
device_samsung_i9300-158fe54d9eafec1a0473656dd89b54e0e53f869b.tar.gz
device_samsung_i9300-158fe54d9eafec1a0473656dd89b54e0e53f869b.tar.bz2
i9300: enable zram [1/2]
Change-Id: I537df0d39ceddfabb5e0a859398d5068f6860faa
-rw-r--r--rootdir/fstab.smdk4x123
-rw-r--r--rootdir/init.target.rc4
2 files changed, 7 insertions, 0 deletions
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