summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2021-05-19 12:03:41 -0600
committerAaron Ball <nullspoon@oper.io>2021-05-19 12:03:41 -0600
commit5c1aec361c0a46dacb2a9bfb28bbda23111a7925 (patch)
tree79419d6b8e99256a78cdd7c1e5d83567ba2fddf9
parent57c37b8e9dc43f1392b1c71f86870cc387f15fc0 (diff)
downloadzram-swap-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.gz
zram-swap-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.xz
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.
-rwxr-xr-xzram-swap2
1 files changed, 1 insertions, 1 deletions
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

Generated by cgit