aboutsummaryrefslogtreecommitdiff
path: root/rootdir/init.mt6735.rc
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-01-29 21:04:38 +0100
committerMister Oyster <oysterized@gmail.com>2017-01-29 21:04:38 +0100
commite641f6c47a697d0149397aced09395f6a8bcef4b (patch)
treee4707785e9acb95691ef38df76d6871763e7596e /rootdir/init.mt6735.rc
parentb9418ff44712377c8c4ce9690e2b56a88c2110e1 (diff)
rootdir: properly enable zram
* use 512mb * lz4 as default compression alg
Diffstat (limited to 'rootdir/init.mt6735.rc')
-rwxr-xr-xrootdir/init.mt6735.rc9
1 files changed, 4 insertions, 5 deletions
diff --git a/rootdir/init.mt6735.rc b/rootdir/init.mt6735.rc
index 849b5a1..4171dcd 100755
--- a/rootdir/init.mt6735.rc
+++ b/rootdir/init.mt6735.rc
@@ -66,6 +66,10 @@ on fs
write /proc/bootprof "INIT:Mount_END"
on post-fs
+ write /sys/block/zram0/comp_algorithm lz4
+ swapon_all /fstab.swap
+ write /proc/sys/vm/page-cluster 0
+
# Support legacy paths
symlink /sdcard /storage/sdcard0
@@ -923,11 +927,6 @@ service PPLAgent /system/bin/ppl_agent
user system
group system cache
-service enableswap /system/bin/sh /enableswap.sh
- class late_start
- oneshot
- seclabel u:r:enableswap:s0
-
service agpsd /system/bin/mtk_agpsd
class main
socket agpsd stream 660 gps system