fleur: init: Enable ZRAM after boot is completed

* According to Google, ZRAM should be enabled after boot_complete.

* https://source.android.com/docs/core/perf/boot-times#defer-non-critical-initialization

Signed-off-by: claxten10 <claxten10@gmail.com>
This commit is contained in:
claxten10
2025-07-18 03:10:54 +00:00
committed by Onelots
parent 2927cf5d54
commit 3bcaa0ed4a

View File

@@ -1,5 +1,5 @@
# Init script for configuring ZRAM
on post-fs-data
on property:sys.boot_completed=1
write /sys/block/zram0/comp_algorithm lz4
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 50