From 5c1aec361c0a46dacb2a9bfb28bbda23111a7925 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Wed, 19 May 2021 12:03:41 -0600 Subject: Improve status command Rather than only listing what device is in use, it now lists all of the details of the device, including usage, using the zramctl command. --- zram-swap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zram-swap b/zram-swap index 3ea0ad7..3392433 100755 --- a/zram-swap +++ b/zram-swap @@ -23,7 +23,7 @@ MEMTOTAL=$(sed -n 's/^MemTotal: \+\([0-9]\+\) kB/\1/p' /proc/meminfo) status() { if [ -f "${RUNFILE}" ]; then - cat "${RUNFILE}" + zramctl $(cat "${RUNFILE}") else printf 'stopped\n' fi -- cgit v1.2.3