zram-swap: Add extra commands for status/compaction
authorEmil Muratov <gpm@hotplug.ru>
Sun, 24 Feb 2019 07:00:03 +0000 (10:00 +0300)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:56:40 +0000 (15:56 -0400)
commit92fa0fd19bbc72dc3b87f6090b701cf1c3e173b2
tree18fa23ab6ab39627a8c2575ce956fd256bb998ee
parent4e1272dfbd37a06cff6ea454a563e56801a81c42
zram-swap: Add extra commands for status/compaction

This patch adds two new commands:
  zram status - shows memory stats for all zram swaps
  zram compaction - trigger compaction for all zram swaps

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit a9deed62af569608af3e4e076138d788e24b1652)
package/system/zram-swap/files/zram.init