zram-swap: Add extra commands for status/compaction
authorEmil Muratov <gpm@hotplug.ru>
Sun, 24 Feb 2019 07:00:03 +0000 (10:00 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 7 Jul 2019 11:02:06 +0000 (13:02 +0200)
commita9deed62af569608af3e4e076138d788e24b1652
tree9029beb32b0bbd5263a64df2eeeda70a2b761bd8
parentafa5ce2493505dc0a0de4cefa9ccbf3a6389bdbc
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>
package/system/zram-swap/files/zram.init